How to repeat an action for every div with an specific

There is a website with many divs with the same class (let's say: class 'abc').

How do I create a snippet that goes through every div, looks for a word (ex: 'thisWord') and, if found, checks the only input type checkbox inside

Hi, this question seems same as:

PTAL and let us know if you have any questions on this.