Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Test full screen
magmueller39bc2a5084b8
diff --git a/tests/test_full_screen.py b/tests/test_full_screen.pynew file mode 100644index 000000000..4a682e1ea--- /dev/null+++ b/tests/test_full_screen.py@@ -0,0 +1,24 @@+import argparse+import asyncio++from playwright.async_api import async_playwright++from browser_use.browser.service import BrowserWindowSize+++async def test_full_screen(start_fullscreen: bool, maximize: bool):+ async with async_playwright() as p:+ browser = await p.chromium.launch(+ headless=False,+ args=['--start-maximized'],+ )+ context = await browser.new_context(no_viewport=True, viewport=None)+ page = await context.new_page()+ await page.goto('https://google.com')++ await asyncio.sleep(10)+ await browser.close()+++if __name__ == '__main__':+ asyncio.run(test_full_screen(False, False))