Click here to Skip to main content
15,177,966 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Trying to hit log in after putting in email and password for[^]

finally managed to tidy up the tiny bugs for inputting the email and password but it wont hit click
If you want to test this stuff on the website your going to have to make a Libertx account
cause cant really give my password and email lol
The only issue i have is hitting log in.
I build a small try catch to show that none of the find elements that are relevant to this current situation work ...atleast in my opinion.
Using chrome webdriver()

<pre lang="Python">
driver1 = webdriver.Chrome()
#Email field
     driver1.find_element(By.CSS_SELECTOR, "#login-field").send_keys("Put email here")#works,keep
     driver1.find_element(By.CSS_SELECTOR, "#password-field").send_keys('Put password here')#woks,keep

#Logging in doesn't not work

          driver1.find_element(By.XPATH,'//*[contains(concat( " ", @class, " " ), concat( " ", "a-btn-blue", " " ))]').click()
              driver1.find_element_by_class_name('a-btn a-btn-blue').click()
               print("Want to cry!!!")

The html for the log in button

What I have tried:

Tried using find element by xpath, css, class name.Also know htat sometimes waiting because selenium sometimes you have to do that ..that didnt help either

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900