Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Get Selected option from Dropdown.

Category: Selenium WebDriver
Select month=new Select(month_dropdown);
WebElement first_value=month.getFirstSelectedOption();
String value=first_value.getText();

Leave a Reply

Your email address will not be published. Required fields are marked *