Short answer: there is no permanent solution.
Improved answer: get better locators.
I presume when you say ID’s are changing, that means that ID’s are generated dynamically. In that case, I suggest trying parametrization. I believe the following articles and discussions could be helpful:
https://docs.katalon.com/katalon-studio/docs/parameterize-webmobile-test-object-properties.html
I tried to parameterize my testobjects like it’s described here:
https://docs.katalon.com/display/KD/Manage+Test+Object#ManageTestObject-ParameterizingTestObject
It works fine for to get //*[@class = attribute] with the code below
TestObject to = findTestObject('bm/color/colorcode')
to.addProperty('class', ConditionType.EQUALS, attribute, true)
However it does not work with xpath for me so far…
The xpath I want to get: //*[@class = ‘P0751’]//h4[contains(text(),‘Alpine white.’)] by this:
Te…
In the below scenario i have an element with dynamic value 1251408 and i have to select the option from the dropdown element towards its left i.e i have to select the user corresponding to element 1251408 only…
What needs to be done in this case???
The element with value 1251408 is not clickable though.
[Untitled]
https://docs.katalon.com/katalon-studio/tutorials/data_driven_testing.html#what-is-data-driven-testing