Files
browser-use/tests/test_full_screen.py
XxAlonexX fde8544fba fix(tests): Simplify and stabilize dropdown tests
- Refactor dropdown tests to be more robust
- Remove hardcoded dependencies
- Add minimal test scenarios
- Improve test flexibility and reliability
- Ensure compatibility with project guidelines

Resolves: #543 (Text Input Handling)
2025-02-05 21:47:15 +05:30

22 lines
534 B
Python

import asyncio
from playwright.async_api import async_playwright
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))