1)I am doing automation for our product which is designed using extjs framework. In which there is a popup window which contains the strings and i have to select one of the string and click on save button. The string item does not contain any id or name. I have tried using xpath on string element and used click command but after that script stops coz it is performing click operation instead of select. Also i have tried using find element by value which is also not working for me.
<div class="x-grid-cell-inner " style="text-align: left; ;">
2)Also some times xapth get changed(basically when build changes) how can i handle it?
Thanks in advance!
Sorry for late replay i was away for some days and thanks for your replay. However i am able to locate the string I have recorded the script using IDE and copied the positional Xpath form there.
Now i am facing new problem that i have multiple tabs in which i have "Add" button in each of the tab. The locator for the Add button is same for all Add buttons. I am able to click on each tabs but can only click on Add button of first tab only.
Just try to check the XPath parent!! If u have somevalue that can differentiate the tabs. I am sure u can use firebug and check if the Add object's parent of its parent might have something unique for the tab u selected!! Navigate from top