๐Ÿบ Join Clicknium for quality support, growth opportunities, and a supportive community

BrowserTab.wait_disappear_by_xpath

def wait_disappear_by_xpath(
self,
xpath: str,
wait_timeout: int = 30
) -> bool

In the active browser, wait for the element to disappear by the given XPath.

Parameters:
โ€ƒxpath[Required]: str
โ€ƒโ€ƒ the XPath of the element to find.
โ€ƒtimeout: int
โ€ƒโ€ƒ Timeout for the operation, the unit is second, and the default value is 30 seconds.

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

Example:


from clicknium import clicknium as cc

chrome_tab = cc.chrome.open("https://bing.com")

# wait element disappear by XPath
result = chrome_tab.wait_disappear_by_xpath("//*[@id=\"sb_form_q\"]", wait_timeout=5)
print(result)

Previouswait_disappearNextwait_disappear_by_css_selector

What are your feelings
Updated on 29 August 2023