Katalon 7.0 Beta new Keywords

I wonder how the new keywords are supposed to work :smiley:
i was trying some simple interactions in a testcase

WebUI.openBrowser('www.google.de')
WebUI.delay(10)
WebUI.comment('you got 10 seconds to navigate the browser to : chrome://settings/')
WebUI.maximizeWindow()
WebElement temp1 = CustomKeywords.'rd.JsDom.getWebElement'('document.querySelector("body > settings-ui").shadowRoot.querySelector("#left > settings-menu").shadowRoot.querySelector("#people")')
TestObject tempObject1 = WebUI.convertWebElementToTestObject(temp1)
WebUI.click(findTestObject(tempObject1))

But that sure i hard given as there is no XPath as per definition, is there a case where i would need a Testobject that i can not click or do anything with :slight_smile: ?

Is there going to be some documentation on where to use it and what there limitations are :smiley: ?

1 Like

Hi @Jens.gr

findTestObject(...) actually returns a TestObject, but with keyword convertWebElementToTestObject, you only needs to pass tempObject1 directly.

2 Likes

Thank you @ThanhTo :sunny:

1 Like