child

def child(self, index: int)

Get child element with index.

Remarks:

  • The index starts from 0.

Parameters:
โ€ƒindex[Required]: int
โ€ƒโ€ƒ index specified, get the nth child

Returns:
โ€ƒUiElement object if it is found, or None if not

Example:

from clicknium import clicknium as cc, locator, ui

ele = ui(locator.chrome.bing.li_dots_overflow)
first_child = ele.child(0)
What are your feelings
Updated on 29 August 2023