Closed
Description
openedon Jul 17, 2024
Version
1.45.2
Steps to reproduce
Using Playwright + Python:
I did test using the following options:
- Steps:
with dgame_page.context.expect_page() as dgame_info:
dgame_dashboard.connect_button.click()
dgame_popup = dgame_info.value
dgame_popup.wait_for_load_state()
Result:
- Works using local run ( MacOS ) with headless and headed mode.
- Does not work using Github actions
- Steps:
with dgame_dashboard.page.expect_popup() as popup_info:
dgame_dashboard.connect_button.click()
dgame_popup = popup_info.value
Result:
- Does not work either local run (MacOS) with headless/headed mode or using Github actions
- Steps:
dgame_dashboard.connect_button.click()
dgame_popup = dgame_dashboard.page.context.wait_for_event("page")
Result:
- Works using local run ( MacOS ) with headless and headed mode.
- Does not work using Github actions
Expected behavior
Should be switched to the new context in the same way as for the local run.
Actual behavior
with allure.step('Click Connect button'):
# TODO: Experimental code
with dgame_page.context.expect_page() as dgame_info:
tests/apps/conftest.py:164:
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/playwright/_impl/_sync_base.py:83: in exit
self._event.value
self = <playwright._impl._sync_base.EventInfo object at 0x7f61b72fe890>
@property
def value(self) -> T:
while not self._future.done():
self._sync_base._dispatcher_fiber.switch()
asyncio._set_running_loop(self._sync_base._loop)
exception = self._future.exception()
if exception:
raise exception
E playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded while waiting for event "page"
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/playwright/_impl/_sync_base.py:57: TimeoutError
Additional context
No response
Environment
MacOS, Chromium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels