diff --git a/main.py b/main.py index 7d02292..082513c 100644 --- a/main.py +++ b/main.py @@ -116,7 +116,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')): driver.execute_script("window.stop();") setup(driver, parameters) - until(lambda x: 'loginProgress' in x.find_element(By.TAG_NAME, "body").get_attribute('class'), watch=False) + until(lambda x: 'loginProgress' in x.find_element(By.TAG_NAME, "body").get_attribute('class')) logger.info('Waiting for authentication...') if (account := parameters['account']) and (password := parameters['password']): @@ -181,7 +181,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')): sleep(parameters['interval']) file = Path(parameters['directory']).joinpath(filename) - until(lambda _: file.exists(), watch=False) + until(lambda _: file.exists()) p = ProductInfo(file) driver.close() driver.switch_to.window(driver.window_handles[0]) diff --git a/requirements.txt b/requirements.txt index a33245d..ebb7974 100644 Binary files a/requirements.txt and b/requirements.txt differ