📜  Chechbox 单选按钮 selenium - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:35.454000             🧑  作者: Mango

代码示例2
We locate, and we click on them. 
-> isSelected() 
This method checks if the checkbox/radiobutton 
is selected or not selected.
If the checkbox/radio button is selected isSelected()
syntax:driver.findElement(LOCATOR).isSelected();  
-> isEnabled()
This method checks if the checkbox/radiobutton
is enabled to be clicked.
If the checkbox/radiobutton is clickable/enabled isEnabled
syntax:driver.findElement(LOCATOR).isEnabled();