Hi all,
This email for asking additional hints/clarifications.
We are preparing Creatio UI automatic testing using Selenium.
ID locator in Selenium is the most preferred and fastest way to locate desired WebElements on the page. Since IDs are unique for each element on the page, it is considered the fastest and safest method to locate elements.
We have noticed, performing a Creatio UI testing with Selenium, that ID locator method cannot be adopted with Creatio since the IDs are recreated during each Creatio login session.
In order to let Selenium properly works we had to use Xpath in order to find elements on a Creatio UI.
Do you confirm what we are experimenting with Selenium (i.e. no possibility to use ID locator)?
Best regards,
Stefano
Like
Hi Stefano.
The IDs of the elements are autogenerated each time the page loads, so using IDs is impossible during the tests. Theoretically, if it's possible with Selenium, you need to think on how the DOM tree can be retrieved using querySelector\querySelectorAll and using (once again if possible with Selenium) it instead of element IDs.