url

The command to get the current page's URL.

Syntax

py.url() -> str

Usage

correct usage
py.url()
incorrect usage
py.url

Arguments

  • None

Yields

  • str - The current page's URL

Examples

assert py.url().endswith("/checkout")

Last updated