I have an element in a window in a web page, which I am able to identify for the first time, and able to automate a test case, successfully. But, during second time, after saving, the element’s div gets updated like div(name), gets changed to div(name[1])…
How can I identify this element, successfully all times? I want to click on an element which is nearby the div(name) each time, and there are no other unique identifiers for the page.
I am using a selenium for test automation. The site that I’m tested is built with ext-js.
The element, gets updated in the Main Grid Layout, and next time, the element which I am identifying becomes, item[1], from item…So, I have no other choice but to make the element unique, for which, I removed the item from Main Grid Layout, where its getting auto updated…This solved, my problem…From next time, the element was consistently identified, by the automation tool…