[WebUI] Click


#1

This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/webui-click.html

#2

is it possible to create a test object to save the initial test object in it and then interact with it? I can’t get this to work

For example:

WebElement MyTestObject1 = WebUiCommonHelper.findWebElement(findTestObject(‘Object Repository/SomeTestObject’), 30)

WebUI.click(MyTestObject1)


#3

Try “TestObject” not “WebElement”.

TestObject MyTestObject1 = findTestObject(‘Object Repository/SomeTestObject’)
WebUI.click(MyTestObject1)

#4

Yes, thank you. I figured out I was wrong shortly after I posted :slight_smile: