def is_element_present(self, finder, selector, wait_time=None):
        wait_time = wait_time or self.wait_time
        end_time = time.time() + wait_time

        while time.time() < end_time:
            if finder(selector):
                return True
        return False
dataset/ETHPy150Open cobrateam/splinter/splinter/driver/webdriver/__init__.py/BaseWebDriver.is_element_present/original