From 641ba60844c9289758244f098690483a55c41ffb Mon Sep 17 00:00:00 2001 From: Niel Thiart Date: Tue, 6 Feb 2024 10:51:15 +0200 Subject: [PATCH] Undo removing remote page with a wait test ref simonw/shot-scraper#134 --- tests/run_examples.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/run_examples.sh b/tests/run_examples.sh index bb4573a..42a19e3 100755 --- a/tests/run_examples.sh +++ b/tests/run_examples.sh @@ -38,6 +38,11 @@ shot-scraper https://simonwillison.net/ \ # JPEG quality shot-scraper https://simonwillison.net/ \ -h 800 -o examples/simonwillison-quality-80.jpg --quality 80 +# Selector with a wait +shot-scraper 'https://www.owlsnearme.com/?place=127871' \ + --selector 'section.secondary' \ + -o examples/owlsnearme-wait.jpg \ + --wait-for "!!document.querySelector('section.secondary')" # Accessibility shot-scraper accessibility https://datasette.io/ \ > examples/datasette-accessibility.json