TestProject Forum
Powered by leading experts in the test automation community

Element IDs changes on page reload and playback failed

I have recorded a test on a page. However, on execution noticed that a step failed due to an element not being located . This might be because of randomly generated element ID’s. Is there any way to rectify this issue?

Hello @ashaknm.

This can indeed be caused by randomly generated site element ID’s, for cases such as this, I can recommend creating general locators such as XPATH that will be able to locate the element regardless of the changing ID, you can view an example here:

1 Like

Thank You, It works.

1 Like