This commit is contained in:
2026-06-04 11:40:45 +02:00
parent 9b12745e1d
commit de2145899d
375 changed files with 15343 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Smoke test — spustí stejný launch jako mcp_owa, drží 8 s, zavře."""
import asyncio
from pathlib import Path
from playwright.async_api import async_playwright
PROFILE = Path(__file__).resolve().parent / "outlook_profile"
async def main():
pw = await async_playwright().start()
ctx = await pw.chromium.launch_persistent_context(
user_data_dir=str(PROFILE),
headless=False,
no_viewport=True,
args=["--disable-blink-features=AutomationControlled", "--start-maximized"],
)
page = ctx.pages[0] if ctx.pages else await ctx.new_page()
await page.goto("https://outlook.cloud.microsoft/mail/")
print("OK, page open:", page.url)
await asyncio.sleep(8)
await ctx.close()
await pw.stop()
asyncio.run(main())