-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test failure: Timed out while waiting for element to become available. #158
Comments
Relevant snippet of tests (I think): shot-scraper/tests/run_examples.sh Lines 23 to 45 in a5e9707
|
Here's the problem: shot-scraper https://simonwillison.net/ \
--selector-all .day --padding 20 \
-o examples/selector-all.png I redesigned my blog and removed the |
Stil getting an error - this time I can recreate with - output: selectors-all-from-multi.png
url: https://simonwillison.net/
selectors_all:
- #secondary li:nth-child(-n+5)
- .entry:nth-of-type(1)
padding: 20 And then:
|
I'll do this instead: - output: selectors-all-from-multi.png
url: https://simonwillison.net/
selectors_all:
- "#secondary li:nth-child(-n+5)"
- "#secondary li:nth-child(8)"
padding: 20 |
New error: https://github.com/simonw/shot-scraper/actions/runs/11063333005/job/30739290051
Maybe they are blocking GitHub IPs? I'm going to change that test to not depend on that site. |
I tried this: # Different browsers
echo '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User Agent</title>
</head>
<body>
<h1>Your User Agent:</h1>
<p id="ua"></p>
<script>
document.getElementById("ua").textContent = navigator.userAgent;
</script>
</body>
</html>' > user-agent.html
shot-scraper user-agent.html \
-o examples/useragent-default-chromium.png -h 400 -w 800
shot-scraper user-agent.html \
-o examples/useragent-firefox.png -h 400 -w 800 -b firefox
shot-scraper user-agent.html \
-o examples/useragent-webkit.png -h 400 -w 800 -b webkit
rm user-agent.html It passed for Chrome and Firefox but failed for WebKit:
Looks like there's a bug where WebKit doesn't correctly work with files loaded from disk. |
Instead I'll add myself a user-agent.html in my https://github.com/simonw/tools repo. |
|
Fixed! |
Got this on https://github.com/simonw/shot-scraper/actions/runs/11063153856/job/30738817452
The text was updated successfully, but these errors were encountered: