diff options
| -rw-r--r-- | harvester_submit_week_for_approval.py | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/harvester_submit_week_for_approval.py b/harvester_submit_week_for_approval.py index a0c937e..5939af4 100644 --- a/harvester_submit_week_for_approval.py +++ b/harvester_submit_week_for_approval.py @@ -51,9 +51,11 @@ def submit_week_for_approval(driver, wait, subdomain):      wait.until(expected.text_to_be_present_in_element(          (By.CLASS_NAME, 'timesheet-header'),          str(friday.year))) -    wait.until(expected.text_to_be_present_in_element( -        (By.CSS_SELECTOR, '.day .js-day'), -        friday.strftime('%d %b'))) +    wait.until(expected.visibility_of_element_located( +        ( +            By.XPATH, +            '//a[@aria-label="{}"]'.format(friday.strftime('%A, %d %B')) +        )))      # Click "Submit Week for Approval" button      driver.find_element_by_css_selector( | 
