driver.findElement(By.id("26110162")).isSelected();要么
String str = driver.findElement(By.id("26110162")).getAttribute("checked");if (str.equalsIgnoreCase("true")){ System.out.println("Checkbox selected");}如果ID正在更改…请使用以下XPATH:
//input[span='Seleccionar como tarjeta predeterminada']
要么
//input[@name='address' and @type='radio']



