🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.isEnabled()
  2. B.isDisplayed()
  3. C.isSelected()
  4. 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 →