frame_by_element
The command to switch the driver's context to the given element.
Syntax
py.switch_to.frame_by_element(element: Element, timeout: int = 0) -> PyleniumUsage
iframe = py.get("iframe")
py.switch_to.frame_by_element(iframe)
---or--- # chain a Pylenium command
iframe = py.get("iframe")
py.switch_to.frame_by_element(iframe).contains("Add New").click()Arguments
Yields
Examples
Last updated