How do you print the values from the drop down list without using Select Class

Please explain with at least one example

and also

How do you print the values from the drop down list  using Select Class

with example and explanation

Default Asked on August 13, 2014 in Selenium WebDriver.
Add Comment
  • 3 Answer(s)

    Hi Azeem,

    Check this site for your first question. http://www.toolsqa.com/selenium-webdriver/dropdown-multiple-select-operations/

    Regards,
    Vaidy

    Doctor Answered on August 13, 2014.
    Add Comment

    I dont know the answer for your second question. But, I think this may help you. Check this site. http://sqa.stackexchange.com/questions/8029/how-to-iterate-a-list-of-webelements-and-print-the-values-one-by-one-to-perform

    Regards,
    Vaidy

    Doctor Answered on August 13, 2014.
    Add Comment

    try this code it will work

     

     

    Vice Professor Answered on August 14, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.