def wait_disappear(
locator: Union[_Locator, str],
locator_variables: dict = {},
wait_timeout: int = 30
) -> bool

Wait for the UI element to disappear within specified timeout.

โ€ƒlocator[Required]: str | _Locator
โ€ƒโ€ƒ Locator string, the visit path of locator for target UI element, eg: ‘’, locator store is chrome, and locator name is search_sb_form_q. For more details, please refer to Locator.
โ€ƒlocator_variables: dict
โ€ƒโ€ƒ Locator variables, set to initialize parameters in locator, eg: { "row": 1, "column": 1}, more about variables, please refer to Parametric Locator.
โ€ƒwait_timeout: int
โ€ƒโ€ƒ Timeout for the waiting to disappear, the unit is second, and the default value is 30 seconds.

Returns: bool
โ€ƒReturn True if the element disappears within timeout otherwise return False.


from clicknium import clicknium as cc, locator

#wait element disappear

#parametric locator
variables = {"name":"test"}
cc.wait_disappear(locator.notepad.notepad.document_151, variables)
What are your feelings
Updated on 29 August 2023