children

The command to get the children of the current element.

Syntax

Element.children() -> Elements

Usage

correct usage
py.get("a").children()

---or--- # store in a variable

elements = py.get("ul").children()

---or--- # chain another command

child = py.get("ul").children().first()

Arguments

  • None

Yields

  • Elements - A list of Elements. The list is empty if no children are found.

Last updated