📜  如何处理 selenium 中的复选框和单选按钮 - 无论代码示例

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

代码示例1
- I locate it as just another web element AND CLICK.
    - I would verify if checkbox is selected or not by
        - .isSelected() method will return true if checkbox is selected.
        - .isSelected() method will return false if checkbox is NOT selected.
syntax: checkbox.click();
syntax: checkbox.isSelected(); --> will return boolean: true/false