How to check if the radio button is selected or not in Selenium WebDriver?

后端 未结 3 945
别跟我提以往
别跟我提以往 2021-01-05 04:55

Here is my HTML code

3条回答
  •  庸人自扰
    2021-01-05 05:29

    You can try any of this method:-

    1. selenium.isChecked(Locator);

    2. List radio = driver.findElements(By.name("address")); radio.get(0).getAttribute("checked"));

    Hope it will help...

提交回复
热议问题