The command to check if the list of elements is empty.
Elements.is_empty() -> bool
py.find("a.hidden-link").is_empty()
# Errors, 'Element' is not a list py.get("a").is_empty()
None
bool - True if the length is zero, else False
Last updated 3 years ago