Skip to content

Commit

Permalink
Update easyapplybot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCredible authored Jul 16, 2020
1 parent 984c971 commit facdc58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easyapplybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
bot.start_apply(positions, locations)

0 comments on commit facdc58

Please sign in to comment.