I am using playwright in java and I have a page that runs javascript. After opening it shows "Loading..." and only when this disappears the content to be tested appears.
So, I want to load the (iframe) with a selector to check for the text "Loading..." to disappear. While I can select for the "headerMessage" etc. I don't get this working with the negated regexp. Is this not possible? What am I doing wrong?
Frame frame = page.frame("tf_content").waitForSelector("#headerMessage :text-matches(\"!Loading...\")").ownerFrame();