Playwright · Middle · Question 34 of 75

How do you find list items that do NOT contain a "Sold out" label?

Show the answer

Correct answer: items.filter({ hasNotText: 'Sold out' })

Explanation

hasNot and hasNotText remove matches containing an element or text.

Further reading

Problem with a question

Playwright · Middle · question 34

Test yourself

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

Take this quiz