Comments (4)
I was not able to reproduce it.
Could you try to set the following environment variable and then run the script again?
$Env:DEBUG="pw:browser"
python test.py
(its for PowerShell as a terminal)
from playwright-python.
I was not able to reproduce it.
Could you try to set the following environment variable and then run the script again?
$Env:DEBUG="pw:browser" python test.py
(its for PowerShell as a terminal)
I added the following as you said:
import os os.environ["DEBUG"] = "pw:browser"
Then the following error occurred on the terminal:
2024-04-10T11:01:29.743Z pw:browser C:\Users\xxxxx\AppData\Local\ms-playwright\chromium-1112\chrome-win\chrome.exe --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --no-sandbox --user-data-dir=C:\Users\kingdee\AppData\Local\Temp\playwright_chromiumdev_profile-nZkzTL --remote-debugging-pipe --no-startup-window
2024-04-10T11:01:29.754Z pw:browser pid=27548
2024-04-10T11:01:29.859Z pw:browser [pid=27548][err] [27548:27276:0410/190129.858:ERROR:chrome_browser_cloud_management_controller.cc(161)] Cloud management controller initialization aborted as CBCM is not enabled. Please use the --enable-chrome-browser-cloud-management
command line flag to enable it if you are not using the official Google Chrome build.
2024-04-10T11:01:30.271Z pw:browser [pid=27548]
2024-04-10T11:01:30.348Z pw:browser [pid=27548]
2024-04-10T11:01:30.348Z pw:browser [pid=27548] starting temporary directories cleanup
2024-04-10T11:01:30.357Z pw:browser [pid=27548] finished temporary directories cleanup
2024-04-10T11:01:30.357Z pw:browser [pid=27548]
Traceback (most recent call last):
File "D:\Python_Project\study1\test.py", line 13, in
page.goto('https://www.baidu.com')
File "D:\Python312\Lib\site-packages\playwright\sync_api_generated.py", line 8667, in goto
self._sync(
File "D:\Python312\Lib\site-packages\playwright_impl_sync_base.py", line 115, in _sync
return task.result()
^^^^^^^^^^^^^
File "D:\Python312\Lib\site-packages\playwright_impl_page.py", line 500, in goto
return await self._main_frame.goto(**locals_to_params(locals()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python312\Lib\site-packages\playwright_impl_frame.py", line 145, in goto
await self._channel.send("goto", locals_to_params(locals()))
File "D:\Python312\Lib\site-packages\playwright_impl_connection.py", line 59, in send
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python312\Lib\site-packages\playwright_impl_connection.py", line 513, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: Page.goto: Page crashed
Call log:
navigating to "https://www.baidu.com/", waiting until "load"
from playwright-python.
I'm not able to reproduce on my Windows 11 machine, maybe the site returns different content from your location.
If you start C:\Users\xxxxx\AppData\Local\ms-playwright\chromium-1112\chrome-win\chrome.exe
manually, are you able to navigate to these sites?
Looks like this affects not only baidu.com
it does also affect taobao.com
?
from playwright-python.
Closing as per above since we were not able to repro.
from playwright-python.
Related Issues (20)
- [Bug]: `EventContextManager` does not conform to `AbstractContextManager` protocol
- [Feature]: Add extra logging for the PW
- [Bug]: Locator Click() Timeout error in headless session while clickable in non headless HOT 1
- [Ports]: Backport client side changes
- [Docs]: How to run demo code step by step? HOT 1
- playwright1.42,chrome is being controlled by automated testing software HOT 2
- How to Dynamically pass values inside this locator HOT 2
- Unable to pass Dynamic values inside a Locator picked using Playwright Inspector HOT 1
- [Bug]: Zombie thread problem HOT 2
- How to get the error type Console in the browser? HOT 3
- [Bug]: set_checked() doesn't work on checkbox element of a slider HOT 7
- How to locate the chromewebstore's confirm dialog? HOT 1
- how to get Twitter cookie and login with headless chromium HOT 1
- [Bug]: `Download.failure()` raises `TypeError: expected string or bytes-like object, got 'NoneType'`
- [Bug]: Error: net::ERR_PROXY_CONNECTION_FAILED .... is of type playwright._impl._errors.Error HOT 1
- [Bug]: Future finished exception=TargetClosedError('Target page, context or browser has been closed')
- [Bug]: Using playwright browser to measure the FCP & LCP caused inaccuracy HOT 1
- [Feature]: allow reuse of JavaScript functions HOT 1
- What is the value list for local in Playwright? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright-python.