Interview Questions

Selenium WebDriver - How to automate radio button in Selenium 2.0?

Selenium WebDriver Interview question and Answers


(Continued from previous question...)

Selenium WebDriver - How to automate radio button in Selenium 2.0?

WebElement el = driver.findElement(By.id("Radio button id"));
//to perform check operation el.click()
//verfiy to radio button is check it return true if selected else false el.isSelected()

(Continued on next question...)

Other Interview Questions