visit

The command to navigate to URLs.

Syntax

py.visit(url: str) -> Pylenium

Usage

py.visit("https://qap.dev")

Arguments

  • url (str) - the URL to visit

Make sure to include the protocol http or https

Yields

  • Pylenium - The current instance of Pylenium so you can chain another command

Examples

# Navigate to a URL
py.visit("https://qap.dev")
# Navigate to a URL and click on About link
py.visit("https://qap.dev").contains("About").click()

Last updated