default_content

The command to switch the driver's context to the default (or starting) content.

Syntax

py.switch_to.default_content() -> Pylenium

Usage

correct usage
py.switch_to.default_content()

---or--- # chain a Pylenium command in the new context

py.switch_to.default_content().get(".link")

Arguments

  • None

Yields

  • Pylenium - The current instance of Pylenium so you can chain commands

If the driver is already in the default context, nothing changes

Last updated