Trying to hit log in after putting in email and password for
https://app.libertex.com/[
^]
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
#PasswordField
driver1.find_element(By.CSS_SELECTOR, "#password-field").send_keys('Put password here')#woks,keep
#Logging in doesn't not work
try:
driver1.find_element(By.XPATH,'
except:
driver1.find_element(By.CSS_SELECTOR,'.a-btn-blue').click()
try:
driver1.find_element_by_class_name('a-btn a-btn-blue').click()
except:
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