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
Interact with the browser; OR sleep the script and let the browser stay for a few seconds.
Stop the script:
context.close()
browser.close()
pw.stop()
The Error will be thrown on context.close() line.
Expected behavior
No errors thrown and HAR file generated.
Actual behavior
The following error is thrown:
File "E:\project\BrowserLauncher.py", line 107, in _close_playwright
self._context.close()
File "E:\project\venv\lib\site-packages\playwright\sync_api\_generated.py", line 13474, in close
return mapping.from_maybe_impl(self._sync(self._impl_obj.close(reason=reason)))
File "E:\project\venv\lib\site-packages\playwright\_impl\_sync_base.py", line 115, in _sync
return task.result()
File "E:\project\venv\lib\site-packages\playwright\_impl\_browser_context.py", line 598, in close
await self._channel._connection.wrap_api_call(_inner_close, True)
File "E:\project\venv\lib\site-packages\playwright\_impl\_connection.py", line 528, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: : Invalid string length
No HAR file generated.
Additional context
No response
Environment
- Operating System: Windows 10
- CPU: Core i9
- Browser: Chromium
- Python Version: 3.10
- Other info:
The text was updated successfully, but these errors were encountered:
The script does not work for me. Would it be possible to provide exact reproduction steps and a entire script we can just run using python test.py? Thanks.
Version
1.50.0
Steps to reproduce
context.close()
line.Expected behavior
No errors thrown and HAR file generated.
Actual behavior
The following error is thrown:
No HAR file generated.
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: