You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be called with the "javascript error from the page"
Actual behavior
The following exception is raised:
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 453, in dispatch
g.switch(self._replace_guids_with_channels(params))
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 444, in _listener_with_error_handler_attached
potential_future = listener(params)
^^^^^^^^^^^^^^^^
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/playwright/_impl/_browser_context.py", line 170, in <lambda>
lambda params: self._on_page_error(
^^^^^^^^^^^^^^^^^^^^
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/playwright/_impl/_browser_context.py", line 695, in _on_page_error
self.emit(BrowserContext.Events.WebError, WebError(self._loop, page, error))
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/pyee/base.py", line 212, in emit
handled = self._call_handlers(event, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/pyee/base.py", line 188, in _call_handlers
self._emit_run(f, args, kwargs)
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/pyee/asyncio.py", line 53, in _emit_run
self.emit("error", exc)
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/pyee/base.py", line 215, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/pyee/base.py", line 173, in _emit_handle_potential_error
raise error
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/pyee/asyncio.py", line 51, in _emit_run
coro: Any = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/playwright/_impl/_impl_to_api_mapping.py", line 124, in wrapper_func
*list(map(lambda a: self.from_maybe_impl(a), args))[:arg_count]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/playwright/_impl/_impl_to_api_mapping.py", line 124, in <lambda>
*list(map(lambda a: self.from_maybe_impl(a), args))[:arg_count]
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/playwright/_impl/_impl_to_api_mapping.py", line 69, in from_maybe_impl
api_instance = api_class(obj)
^^^^^^^^^^^^^^
File "/home/developer/.cache/pypoetry/virtualenvs/testbug-i1-BfjSz-py3.11/lib/python3.11/site-packages/playwright/_impl/_sync_base.py", line 92, in __init__
self._dispatcher_fiber = impl_obj._dispatcher_fiber
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WebError' object has no attribute '_dispatcher_fiber'
Version
1.49.1
Steps to reproduce
My test-bug.py script:
Expected behavior
The callback:
should be called with the "javascript error from the page"
Actual behavior
The following exception is raised:
Additional context
Environment
The text was updated successfully, but these errors were encountered: