Featured
-
No Featured Found!
Tags
Handling dropdown in Capybara
Handling dropdown is very easy in Capybara. Here we do not have to create the object of Select class and the select option through Select class object. We directly have to pass the option value which is to be selected to the desired location.
...
How to select values from dropdown in Selenium
Value can be selected from the drop down, using the "Select" class:
Select sel = new Select(driver.findElement(By.xpath("xpath_of_dropdown")));
sel.selectByIndex(index_of_value_to_select);
OR
Select sel = new Select(driver.findElemen...