Overview
Pylenium offers many commands and features out of the box.
py
from pylenium.driver import Pylenium
def test_visit(py: Pylenium):
py.visit("https://qap.dev")Element and Elements
py.get("ul").find("li").first().click()# Click the first element with id=button
element = py.get("#button")
element.click()# Print the href value of all links on the page
elements = py.find("a")
for el in elements:
print(el.get_attribute("href"))Last updated