Skip to content

Commit

Permalink
Merge pull request #16 from dimagoltsman/patch-2
Browse files Browse the repository at this point in the history
Fix - edu added some blocker overlay that needs another click
  • Loading branch information
t0mer committed Jan 18, 2021
2 parents f624604 + 7b203fc commit 23d902d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions workers/Health_Statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ def sign(userCode, sitePassword, Image):
logger.debug('Unable to ping')

browser.get("https://parents.education.gov.il/prhnet/parents/rights-obligations-regulations/health-statement-kindergarden")
start = '//*[@id="main-content"]/section[1]/div/health-declaration/div/div[1]/div[4]/div/div/div/input'
start = '/html/body/app-root/main/div/components-page/div/div[2]/section[1]/div/health-declaration/section[1]/div[1]/div[1]/div[4]/div/div/div/input'
time.sleep(2)
helpers.fullpage_screenshot(browser,Image)
helpers.log_browser(browser)
browser.find_element_by_xpath(start).click()
time.sleep(2)
helpers.log_browser(browser)
browser.get('https://lgn.edu.gov.il/nidp/wsfed/ep?id=EduCombinedAuthUidPwd&sid=0&option=credential&sid=0')
time.sleep(2)


#### click on blocker if exists
blocker = '//*[@id="blocker"]'
browser.find_element_by_xpath(blocker).click()
time.sleep(1)

#### Logging In ####
user = '//*[@id="HIN_USERID"]'
siteAccess = '//*[@id="Ecom_Password"]'
Expand Down

0 comments on commit 23d902d

Please sign in to comment.