Closed nielthiart closed 4 months ago
I think you forgot to include the examples/div-after-2-seconds.html
file.
I think you forgot to include the
examples/div-after-2-seconds.html
file.
The examples/div-after-2-seconds.html
is still created by a prior test step, but re-used in the new tests.
Thanks for considering this PR. I realised now that I made a different mistake — I removed the original owlsnearme.com test completely, which was not my intention. This commit undoes that.
Hopefully, that will get squashed away on merge, but please let me know if I should squash everything to clean this small change up.
Taken as a whole, this update should now:
Selector with a wait for remote page element
test to wait for a section to load, instead of a timed wait.div
in examples/div-after-2-seconds.html
.This way we still test timed waiting, just not for remote pages.
Thanks very much for this
On moderately slow networks, the "selector with a wait" test fails.
~This commit replaces the
--wait 2000
argument with--wait-for "!!document.querySelector('section.secondary')"
.~Edit: Reuses the --wait-for test's HTML with a delayed div.
Fixes simonw/shot-scraper#134
📚 Documentation preview 📚: https://shot-scraper--135.org.readthedocs.build/en/135/