r/Playwright•
RogerAguas

How to verify that a container does not include a specific list of words?

Hi! I'm trying to do what is stated in the title.

I have a list of "banned" words that should not appear on a specific container and I'm looking for a way to pick all elements (listed in an <ul> inside of a div.

I guess I should place all those banned words inside an array on a separate file first.

Posted Mar 12, 2025, 8:04 PM UTC

21
Loading comments…