Skip to content

Commit ec92063

Browse files
Increase zoom level for miniwob
1 parent 6bc4c51 commit ec92063

File tree

1 file changed

+1
-1
lines changed
  • browsergym/miniwob/src/browsergym/miniwob

1 file changed

+1
-1
lines changed

browsergym/miniwob/src/browsergym/miniwob/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def setup(self, page: playwright.sync_api.Page) -> tuple[str, dict]:
6161

6262
# navigate to the task's url
6363
self.page.goto(self.url)
64-
64+
self.page.evaluate("document.documentElement.style.zoom='150%'")
6565
# remove human display if requested (goal, time left, last reward etc.)
6666
if self.remove_human_display:
6767
self.page.evaluate( # if error : core is not defined, make sure you started the miniwob http server at the right place miniwob-plusplus/miniwob/html

0 commit comments

Comments
 (0)