-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Add option to change Chromium's pageLoadStrategy
Here are the different options for pageLoadStrategy
:
-
"normal"
: This strategy causes Selenium to wait for the full page to load, with HTML content and sub-resources downloaded and parsed. -
"eager"
: This strategy causes Selenium to wait for theDOMContentLoaded
event, which occurs after the initial HTML content is fully received by the browser, with additional processing. -
"none"
: This strategy causes Selenium to return immediately after the initial HTML content is fully received by the browser, but before it is processed and/or parsed.
(NOTE: By default, Selenium follows the "normal"
pageLoadStrategy
when it loads a page.)
The option to be added: --page-load-strategy=PLS
/ --pls=PLS
(short form)
Eg: pytest --pls=none