How many ways we can click on the Radio button using Selenium… December 5, 2018 / Guest / 1 Comment How many ways we can click on the Radio button using Selenium… Sharing is caring:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on LinkedIn (Opens in new window) Question Previous post Little known ways to measure test coverage Next post State of Testing Report 2019: Ready to take survey (and download later) 1 Comment jahnvi August 26, 2019 at 4:34 pm hi , you can use this two way to click on the Radio button. WebElement r1= driver.findElement(By.id(“radio1”)); r1.click(); WebElement r2= driver.findElement(By.xpath(copy your xpath “)); r2.click(); Leave a ReplyYour email address will not be published. Required fields are marked *Comment * Name Email Website Save my name, email, and website in this browser for the next time I comment. Δ
hi ,
you can use this two way to click on the Radio button.
WebElement r1= driver.findElement(By.id(“radio1”));
r1.click();
WebElement r2= driver.findElement(By.xpath(copy your xpath “));
r2.click();