siblings
The command to get the siblings of the current element.
Last updated
The command to get the siblings of the current element.
Element.siblings() -> Elementspy.get("a").siblings()
---or--- # store in a variable
elements = py.get(".nav-link").siblings()
---or--- # chain an Elements command
sibling = py.get("ul").siblings().first()None
Elements - A list of Elements. The list is empty if no siblings are found.
Last updated