From 97a0ed3b32769404f5485204f329187d8f6bb9e5 Mon Sep 17 00:00:00 2001 From: tricktx Date: Thu, 21 Sep 2023 15:52:32 -0300 Subject: [PATCH] increase time selenium --- pipelines/datasets/br_stf_corte_aberta/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pipelines/datasets/br_stf_corte_aberta/utils.py b/pipelines/datasets/br_stf_corte_aberta/utils.py index 4ec96aaef..5fc023f4c 100644 --- a/pipelines/datasets/br_stf_corte_aberta/utils.py +++ b/pipelines/datasets/br_stf_corte_aberta/utils.py @@ -30,15 +30,15 @@ def web_scrapping(): options.add_argument("--headless=new") driver = webdriver.Chrome(options=options) - time.sleep(5) + time.sleep(10) driver.get(stf_constants.STF_LINK.value) - time.sleep(5) + time.sleep(10) driver.maximize_window() - time.sleep(5) + time.sleep(10) driver.find_element("xpath", '//*[@id="aba-4"]').click() - time.sleep(5) + time.sleep(10) driver.find_element("xpath", '//*[@id="EXPORT-BUTTON-2"]/button').click() - time.sleep(5) + time.sleep(10) def read_csv():