🍺 Join Clicknium for quality support, growth opportunities, and a supportive community

clicknium.sap.find_element

def find_element(
self,
locator: Union[_Locator, str],
locator_variables: dict = {}
) -> SapElement

Return the SAP UI element defined by the given locator.

Parameters:
 locator[Required]: str | _Locator
   locator string, the visit path of locator for target SAP UI element.
 locator_variables: dict
   locator variables, set to initialize parameters in locator.

Returns:
 SapElement object.

Example:


from clicknium import clicknium as cc, locator, ui

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

# find sap element
sap_ele1 = cc.sap.find_element(locator.sap.items_control1)
sap_ele1.select_item("item1")

# parametric locator
variables = {"name":"test"}
sap_ele2 = cc.sap.find_element(locator.sap.bar_control, variables)
sap_ele2.get_statusbar()

PreviousloginNextSapElement

What are your feelings
Updated on 30 August 2023