how to select radio button & checkbox in selenium webdriver with java?
For selecting Radio button
driver.findElement(By.xpath(".//*[@id='ValidRadio_3']")).click();
For selecting Checkbox
driver.findElement(By.xpath(".//*[@id='ValidCheckbox_1']")).click();
Answer : select radio button & checkbox in selenium webdriver with java go through below code.
Click on Radio button:
driver.findElement(By.id("RadioBtn_ID")).click();
Click on Checkbox:
driver.findElement(By.id("Checkbox_ID")).click();
For more details with brief description go through below link.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.