← Quiz: Web Elements: all 10 questions
Quiz: Web Elements · Question 6 of 10
Which method reads whether a checkbox is currently ticked?
Which method reads whether a checkbox is currently ticked?
- A.isEnabled()
- B.isDisplayed()
- C.isSelected()
- D.getText()
Answer & explanation
Correct answer: isSelected()
click() toggles the checkbox; isSelected() reports its state.
Can you get the rest right without peeking?
Take the timed Quiz: Web Elements quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →