Comments (4)
can't reproduce via:
canstand@4b2c84c
from playwright-go.
can't reproduce via: canstand@4b2c84c
Oh interesting, so it turns out that it returns nil exclusively when using playwright.WaitUntilStateNetworkidle
.
Updating the following line should repro:
_, err = page.Goto("https://starpets.gg", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateNetworkidle})
from playwright-go.
networkidle DISCOURAGED
from playwright-go.
Thanks for your detailed answer.
Networkidle is discouraged, for tests, because it relies on sleeps (500ms).
Most time based expectations are an anti-pattern in testing, hence the "DISCOURAGED".
However it doesn't explain why page.evaluate would have an unexpected behavior.
I ended up filing a bug upstream as I could repro with node: microsoft/playwright#29440
from playwright-go.
Related Issues (20)
- Runtime error during pw.Chromium.Connect
- Randomly Crash Issue on Firefox HOT 1
- Secured Cookies HOT 1
- Jose library has security Vulnurability, can this be upgraded to latest version. HOT 2
- Can't change user-agent on headless mode HOT 4
- [Bug]: access multiple websites. Firefox browser opens multiple windows HOT 1
- [Bug]: hardwareConcurrency is limited to 4 HOT 2
- unable goto ins page
- [Bug]: Using "request. Headers()" in "requestfinished" yields an error message. panic: interface conversion: interface {} is [] map [string] string, not [] interface {}
- [Bug]: Host system is missing dependencies to run browsers - on Ubuntu 24.04 HOT 2
- [Bug]: Open fullscreen without "chrome is being controlled..."
- How does `Evaluate` work? HOT 3
- [Bug]: Error installing latest playwright-go package HOT 2
- [Bug]: chromium crash inside lambda: could not create page: playwright: target closed: Target page, context or browser has been closed HOT 1
- [Feature]: how to use ssr or ss proxy with golang HOT 1
- [Bug]: Getting error (could not install driver: could not install driver: could not create driver: open /github/home/.cache/ms-playwright-go/1.44.1/node: text file busy\n"})
- [Bug]: Setting the useragent in the context will cause the password input of Twitter's Your Account to be invalid when viewing account information HOT 2
- [Bug]: ExposeBinding in page.go risks a concurrent map write
- [Feature]: Support create Playwright instance without install driver or specify executable path HOT 2
- [Bug]: Ignoring default args
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-go.