The command to get the length of Elements.
Elements.length() -> int
assert py.find("li").length() == 5 ---or--- assert py.find("li").should().have_length(5)
# Errors, 'get' yields Element, not Elements assert py.get("li").length() == 1
None
int - The length of the Elements
Last updated 2 years ago