get_property

def get_property(
self,
name: str,
timeout: int = 30
) -> str

Get property value of the target element.

Parameters:
โ€ƒname [Required]: str
โ€ƒโ€ƒ Property name, different UI elements may support different properties. For specific properties, please refer to Automation Concept.
โ€ƒtimeout: int
โ€ƒโ€ƒ Timeout for the operation, the unit is second, and the default value is 30 seconds.

Returns:
โ€ƒstr

Example:


from clicknium import clicknium as cc, locator, ui

tag = ui(locator.chrome.bing.search_sb_form_q).get_property("tag")
What are your feelings
Updated on 29 August 2023