Ykeremy/context parameter source parameters (#200)

This commit is contained in:
Kerem Yilmaz
2024-04-16 15:41:44 -07:00
committed by GitHub
parent 02cf2a1e87
commit 4a3e897dad
8 changed files with 159 additions and 27 deletions

View File

@@ -207,7 +207,9 @@ async def handle_download_file_action(
# Start waiting for the download
async with page.expect_download() as download_info:
await asyncio.sleep(0.3)
await page.click(f"xpath={xpath}", timeout=SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS)
await page.click(
f"xpath={xpath}", timeout=SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS, modifiers=["Alt"]
)
download = await download_info.value