We can
select a value from the dropdown using the select class.
Example:
Select edition=new Select(driver.findElement(By.id("payment_plan_id")));
edition.selectByVisibleText("Free
Edition");
edition.selectByIndex(index);
edition.selectByValue(value);
edition.selectByVisibleText(text);
edition.deselectAll();
edition.deselectByIndex(index);
edition.deselectByValue(value);
edition.deselectByVisibleText(text);
No comments:
Post a Comment