Hi,
I also want some help on this topic. I am just starting using Katalon.
The objects on the webpage are build dynamically from scratch.
Using basic objects
properties it can’t perform the click action:
It’s not able to find
the object. The message:
Test Cases/PIM/Menu catalogus FAILED because (of) Unable to click on object
‘Object Repository/PIM/2.Menu_onderdelen/Menu_Catalogus’ (Root cause:
org.openqa.selenium.WebDriverException: unknown error: Element
…
is not
clickable at point (214, 12). Other element would receive the click:
So I tried xpath
Using Spy Web I can find the right xpath
e.g. //*[@id=“main-menu”]/div[1]
I checked that with the verify and highlight option in the method xpath.
No scrolling is needed.
Catalogus
Item
Gefilterde items
DAM
Beeld
Extra
Help
This testcase is also not able to perform the click action on the Testobject.
The message:
Test Cases/PIM/Menu
catalogus - Click FAILED because (of) Unable to click on object ‘Object
Repository/PIM/2.Menu_onderdelen/Menu_Catalogus’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException:
Web element with id: ‘Object Repository/PIM/2.Menu_onderdelen/Menu_Catalogus’
located by 'By.xpath: ’ not found)
Scriptmode:
WebUI.openBrowser(’’)
WebUI.maximizeWindow()
WebUI.navigateToUrl(‘vms01-t/’)
WebUI.waitForPageLoad(GlobalVariable.TimeOut)
WebUI.sendKeys(findTestObject(‘PIM/1.Page_Login - SRC-PIM
Regressie/username’), ‘AnjaENG’)
WebUI.sendKeys(findTestObject(‘PIM/1.Page_Login - SRC-PIM
Regressie/password’), ‘!!!’)
WebUI.click(findTestObject(‘PIM/1.Page_Login - SRC-PIM
Regressie/btn_login’))
WebUI.waitForElementVisible(findTestObject(‘PIM/2.Menu_onderdelen/SRC_Logo’),
0)
WebUI.click(findTestObject(‘PIM/2.Menu_onderdelen/Page_SRC-PIM
Regressie (1)/span_Catalogus’))
I tried to work with
the Dynamic object but I am struggling with the scriptmode. With the examples
mentioned it is not clear what to do.
Can somebody please
tell me what the script has to be?