New to Katalon
When doing a record
web I find that extra objects or path(not sure what to call them) are being
added to the Test Object.
Scenario
Testing
in Chrome with Microsoft Dynamics 365 for Finance and Operations
My test is a basic username/password login.
I click on the login line and enter my login, click Ok, then enter my password,
click Ok again.
When I go to run the
test case it fails on entering my login, like it cant find that line.
The Script view shows the following error
Unable to click on
object (Root cause: java.lang.IllegalArgumentException: Object is null
I found in Script
mode its adding an extra path to the Object.
The line where I
enter my login object is called âinput_Sign in_loginfmtâ. In script mode it should look like this
WebUI.click(findTestObject(ânput_Sign in_loginfmtâ))
However when
looking at script mode its showing up as:
WebUI.click(findTestObject(âObject
Repository/Page_Dashboard/input_Sign in_loginfmtâ))
I managed to figure
out if I remove the line âObject Repository/Page_Dashboardâ the test
case runs fine.
MY QUESTION
How can I make it so
that it doesnât add this extra path to prevent my tests from failing
Any time I create a new test case its adding a âpathâ and causing the test to fail on the first step.
If this helps, all my
captured objects are not in folders just in the default Object Repository.
Thank you in advance