

def wait_for_element_present(self, locator, timeout=30):
    "Waits until element specified with 'locator' present on current page.\n            \n        Fails if 'timeout' expires before the element appears.\n        \n        Default timeout is set to 10s, it can be used to override the default value.\n            \n        "
    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))))

dataset/ETHPy150Open luisxiaomai/robotframework-anywherelibrary/src/AnywhereLibrary/base/waiting.py Waiting.wait_for_element_present/original