frame_by_element
The command to switch the driver's context to the given element.
Syntax
Usage
correct usage
Arguments
element (Element)
- The Element to switch totimeout=0 (int)
- The number of seconds to wait for the frame to be switched to
Yields
Pylenium - The current instance of Pylenium so you can chain commands
Examples
If we wanted to click the link above, we would need to:
Switch the driver's context to the iframe
Then perform the click
This is a piece of cake with Pylenium:
Last updated