Skip to content

Commit dbc332f

Browse files
update default window size (revert to playwright default)
1 parent 4f50293 commit dbc332f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/agentlab/agents/hitl_agent/hint_labelling.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ class HintLabelingInputs(BaseModel):
2424

2525

2626
class HintLabeling:
27-
def __init__(self, headless: bool, window_size=(600, 1000), *args, **kwargs):
27+
def __init__(self, headless: bool, *args, **kwargs):
2828
pw_opt = _get_global_playwright()
2929
pw: playwright.sync_api.Playwright = pw_opt # type: ignore[assignment]
30-
self.browser = pw.chromium.launch(
31-
headless=headless, args=[f"--window-size={window_size[0]},{window_size[1]}"]
32-
)
30+
self.browser = pw.chromium.launch(headless=headless)
3331
self.context = self.browser.new_context(
3432
no_viewport=True,
3533
)

0 commit comments

Comments
 (0)