Skip to content

Commit 8dfb745

Browse files
authored
fix: page.pause should not throw (#1204)
1 parent e81b874 commit 8dfb745

File tree

1 file changed

+2
-2
lines changed
  • playwright/src/main/java/com/microsoft/playwright/impl

1 file changed

+2
-2
lines changed

playwright/src/main/java/com/microsoft/playwright/impl/PageImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,8 @@ public PageImpl opener() {
949949

950950
@Override
951951
public void pause() {
952-
withLogging("BrowserContext.pause", () -> {
953-
new WaitableRace<>(asList(context().pause(), (Waitable<JsonElement>) waitableClosedOrCrashed)).get();
952+
withLogging("Page.pause", () -> {
953+
runUntil(() -> {}, new WaitableRace<>(asList(context().pause(), (Waitable<JsonElement>) waitableClosedOrCrashed)));
954954
});
955955
}
956956

0 commit comments

Comments
 (0)