From facdc5868c765e1459442a11888ca7c5fad1e773 Mon Sep 17 00:00:00 2001 From: Spectrem12 Date: Thu, 16 Jul 2020 17:56:19 -0500 Subject: [PATCH] Update easyapplybot.py --- easyapplybot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easyapplybot.py b/easyapplybot.py index ce7105f..2027577 100644 --- a/easyapplybot.py +++ b/easyapplybot.py @@ -356,7 +356,7 @@ def is_present(button_locator): text = testLabelElement.text log.info("test element text: %s", text) #assuming this question is asking if I am authorized to work in the US - if ("Are you" in text and "authorized" in text) or ("Have You" in text and "eduation" in text): + if ("Are you" in text and "authorized" in text) or ("Have You" in text and "education" in text): #Be sure to find the child element of the current test question section yesRadio = testLabelElement.find_element(By.XPATH, yes_locator[1]) time.sleep(1) @@ -372,7 +372,7 @@ def is_present(button_locator): self.browser.execute_script("arguments[0].click()", noRadio) log.info("Clicked the radio button %s", no_locator) - # assuming this question is asking if I require sponsorship + # assuming this question is asking if I have a Bachelor's degree if "you have" in text and "Bachelor's" in text: yesRadio = testLabelElement.find_element(By.XPATH, yes_locator[1]) time.sleep(1) @@ -542,4 +542,4 @@ def setupLogger(): locations = [l for l in parameters['locations'] if l != None] positions = [p for p in parameters['positions'] if p != None] - bot.start_apply(positions, locations) \ No newline at end of file + bot.start_apply(positions, locations)