Extend waiting time after login
Sometimes it would not get the URL for the report within 2sec.
This commit is contained in:
parent
34f1bc062d
commit
054c389892
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ driver.find_element(By.NAME, "password").send_keys(PASSWORD)
|
|||
driver.find_element(By.CSS_SELECTOR, "button[type='submit']").click()
|
||||
|
||||
# Wait for login to process (adjust if needed)
|
||||
time.sleep(3)
|
||||
time.sleep(4)
|
||||
|
||||
child_id = extract_child_id_from_requests(driver.requests)
|
||||
report_url = f"https://www.kidsnote.com/api/v1_2/children/{child_id}/reports/?page_size=5000"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue