Selenium Issues

This forum is for Selenium specific usage or questions

This is a public Discussion Area  publicRSS

Post

    James O'Sullivan
    The web recorder and dropdown lists.
    Post posted January 19, 2009 by James O'Sullivan
    4632 Views, 1 Comment
    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

    • Geetha Shimoga
      posted June 11, 2009 by Geetha Shimoga

      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