Topic:
The web recorder and dropdown lists.
Body:
Hi,I’ve noticed that when I use the web recorder to make a selection in a dropdown list, the code generated never seems to work when replaying the test. For example the following generated code throws a “Locator: 2 not found” error message: selenium.select(ctl00_cphMain_sampleWizard_lbType0, “2”);selenium.click(”//option[@value=’2’]”); Altering the code above to select by value or label does fix the issue, but needs manual intervention everytime. e.g.selenium.select(ctl00_cphMain_sampleWizard_lbType0, “value=2”); or: selenium.select(ctl00_cphMain_sampleWizard_lbType0, “label=Test”); At the end of the day I have my work around and I can show my QA people how to make the appropriate changes. If this could be streamlined it would make my life a lot easier. Thanks
Comment
Hi this is geetha. Iam working on selenium. There is one drop down. How to get the drop down element using xpath?
Advance Thanks for great help. If possible mail me tthe example of drop down to geetha.shimoga@gmail.com