Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
An expectation for checking that an element is present on the DOM
of a page. This does not necessarily mean that the element is visible.
locator - used to find the element
returns the WebElement once it is located

src/r/o/robotframework-anywherelibrary-HEAD/src/AnywhereLibrary/base/waiting.py   robotframework-anywherelibrary(Download)
        """
        try:
            WebDriverWait(Util.driver, float(timeout)).until(EC.presence_of_element_located(locator))
        except TimeoutException:
            self._warn("Wait for element '%s' timeout in '%s'"%(locator,float(timeout)))
        """
        try:
            WebDriverWait(Util.driver, float(timeout)).until_not(EC.presence_of_element_located(locator))
        except TimeoutException:
            self._warn("Wait until no such element '%s' timeout in '%s'"%(locator,float(timeout)))