Testing · Middle · Question 30 of 75

How do you check that a checkbox is checked?

Explanation

The checked attribute reflects only the initial state; toBeChecked checks the current state and also works with aria-checked.

Further reading

Problem with a question

Testing · Middle · question 30

Test yourself

Take the Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz