Skip to content

Commit 60432fe

Browse files
authored
feat(browser-use): update viewport to 1920x1080 (#75)
Change browser window and viewport size from 1024x786 to 1920x1080 for compatibility with kernel default viewport config. ## Changes - Updated `window_size` from 1024x786 to 1920x1080 - Updated `viewport` from 1024x786 to 1920x1080 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > In `pkg/templates/python/browser-use/main.py`, the Browser session is configured for a full HD layout. > > - Updates `Browser` initialization to set `window_size` and `viewport` from `1024x786` to `1920x1080` > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 9611fb2. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent dc39c09 commit 60432fe

File tree

1 file changed

+2
-2
lines changed
  • pkg/templates/python/browser-use

1 file changed

+2
-2
lines changed

pkg/templates/python/browser-use/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ async def bu_task(ctx: kernel.KernelContext, input_data: TaskInput):
4444
browser = Browser(
4545
cdp_url=kernel_browser.cdp_ws_url,
4646
headless=False,
47-
window_size={"width": 1024, "height": 786},
48-
viewport={"width": 1024, "height": 786},
47+
window_size={"width": 1920, "height": 1080},
48+
viewport={"width": 1920, "height": 1080},
4949
device_scale_factor=1.0,
5050
)
5151

0 commit comments

Comments
 (0)