I have a dropdown box that I would like to select a value using WebDriverJS. I\'ve looked at the user guide below and could not find out how to do it
Find the select element and click on it to display the dropdown
driver.findElement(//div//select[@id="elementId"]).click();
Then select from the options and click on it. I think selecting by xpath will really work better here.
driver.findElement(By.xpath('//div//select[@id="elementId"]//option[optionIndex]')).click();