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:
SapElement object if it is found, or None if not

Example:

from clicknium import clicknium as cc, locator, ui

# get sap driver
sap_driver = cc.sap

# login sap application
sap_driver.login("path", "connection", "client", "username", "password")

# find sap element
sap_ele = sap_driver.find_element(locator.sap.item_q)

# get first child
first_child = sap_ele.child[0]

PreviousSapElementNextselect_item

What are your feelings
Updated on 30 August 2023