Skip to content

Commit

Permalink
Merge pull request #132 from ba2512005/master
Browse files Browse the repository at this point in the history
All issues fixed - 5/22/2023
  • Loading branch information
nicolomantini authored Jun 5, 2023
2 parents 7b0e89f + 64c1b5a commit 0036a92
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
13 changes: 4 additions & 9 deletions easyapplybot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
import time, random, os, csv, platform
import logging
from selenium import webdriver
from future import annotations
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.keys import Keys
Expand Down Expand Up @@ -313,12 +313,7 @@ def is_present(button_locator) -> bool:
next_locater = (By.CSS_SELECTOR,
"button[aria-label='Continue to next step']")





input_field = self.browser.find_element("xpath", "//input[contains(@name,'phoneNumber')]")

input_field = self.browser.find_element(By.CSS_SELECTOR, "input.artdeco-text-input--input[type='text']")

if input_field:
input_field.clear()
Expand Down Expand Up @@ -376,7 +371,7 @@ def is_present(button_locator) -> bool:
"button[aria-label='Submit application']")
error_locator = (By.CSS_SELECTOR,
"p[data-test-form-element-error-message='true']")
upload_locator = (By.CSS_SELECTOR, "input[name='file']")
upload_locator = upload_locator = (By.CSS_SELECTOR, "button[aria-label='DOC, DOCX, PDF formats only (5 MB).']")
follow_locator = (By.CSS_SELECTOR, "label[for='follow-company-checkbox']")

submitted = False
Expand All @@ -389,7 +384,7 @@ def is_present(button_locator) -> bool:
upload_locator[1])
for input_button in input_buttons:
parent = input_button.find_element(By.XPATH, "..")
sibling = parent.find_element(By.XPATH, "preceding-sibling::*")
sibling = parent.find_element(By.XPATH, "preceding-sibling::*[1]")
grandparent = sibling.find_element(By.XPATH, "..")
for key in self.uploads.keys():
sibling_text = sibling.text
Expand Down
15 changes: 9 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
selenium
beautifulsoup4
pandas
pyautogui
selenium~=3.141.0
beautifulsoup4~=4.9.1
pandas~=1.3.1
pyautogui~=0.9.50
webdriver_manager
PyYAML
lxml
PyYAML~=5.3.1
lxml
future~=0.18.3
bs4~=0.0.1
future

0 comments on commit 0036a92

Please sign in to comment.