I want all the options which are there in a dropdown .I am using selenium + javascript to write the testcases Please let me know how to get all the options from the dropdown

i know in java we can achive this by using Select class and getOptions() , i need the same how to achive this when we are using webdriverjs

1 Answer 1


Someone develop a webdriverjs-helper:

This helper provide a function to get the values of a dropdown:

  • Hi , Thanks for your answer here what is selector ?
    – QAMember
    Dec 2, 2014 at 11:38
  • @sunilkumar Selector is another term for Locator. List of selectors: CSS ID, CSS class name, HTML tag name, XPath, link text etc.
    – Twaldigas
    Dec 4, 2014 at 7:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.