get_attribute
The command to get the attribute's value with the given name.
Syntax
Element.get_attribute(attribute: str) -> bool | str | NoneUsage
py.get("a").get_attribute("href")
---or--- # store in a variable
href = py.get("a").get_attribute("href")
assert href.startswith("https://")Arguments
Yields
Last updated