Reputation: 11
I'm experiencing very weird exception while using the playwright library in java. I haven't found any information whatsoever about that exception happening in any playwright methods.
This is the stacktrace :
java.lang.IllegalStateException: At least one element must be ready
at com.microsoft.playwright.impl.WaitableRace.get(WaitableRace.java:47)
at com.microsoft.playwright.impl.ChannelOwner.runUntil(ChannelOwner.java:132)
at com.microsoft.playwright.impl.PageImpl.waitForCondition(PageImpl.java:1599)
at com.microsoft.playwright.Page.waitForCondition(Page.java:8350)
and my code looks like this :
page.waitForCondition(() -> playwrightDriver.getPage().locator("#spinner").count() == 0);
Using latest version of Playwright 1.49.0
Upvotes: 1
Views: 42