I have a div with text, for example 'abc'.
I wish to find the first div above that element that has a class called 'myClass'. How to do it? My code doesn't work:
self.page.locator(f'[class="myClass"] >> nth=0:'
f'above(:text("abc"))').count()