Browse Source

Update login function

main
Nathan Pham 1 year ago
parent
commit
59c5de654f
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      MarketPlaces/CypherMarketplace/crawler_selenium.py

+ 1
- 3
MarketPlaces/CypherMarketplace/crawler_selenium.py View File

@ -128,9 +128,7 @@ def getAccess():
# then allows for manual solving of captcha in the terminal # then allows for manual solving of captcha in the terminal
#@param: current selenium web driver #@param: current selenium web driver
def login(driver): def login(driver):
# wait for page to show up (This Xpath may need to change based on different seed url)
WebDriverWait(driver, 100).until(EC.visibility_of_element_located(
(By.XPATH, "/html/body/div/div[1]/div/div[1]/div[1]/ul")))
input("Press ENTER when CAPTCHA is completed\n")
# entering username and password into input boxes # entering username and password into input boxes
usernameBox = driver.find_element(by=By.XPATH, value='/html/body/div/div[2]/div/form/table/tbody/tr[2]/td[2]/input') usernameBox = driver.find_element(by=By.XPATH, value='/html/body/div/div[2]/div/form/table/tbody/tr[2]/td[2]/input')


Loading…
Cancel
Save