Skip to content

Add option to change Chromium's pageLoadStrategy #1477

@mdmintz

Description

@mdmintz

Add option to change Chromium's pageLoadStrategy

Here are the different options for pageLoadStrategy:

  1. "normal": This strategy causes Selenium to wait for the full page to load, with HTML content and sub-resources downloaded and parsed.

  2. "eager": This strategy causes Selenium to wait for the DOMContentLoaded event, which occurs after the initial HTML content is fully received by the browser, with additional processing.

  3. "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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions