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()
No comments :

No comments :

Post a Comment