1
I am starting my studies with Webscraping and I have the problem at the time of giving a second click on a new page.
I am trying to access my email using Selenium, I can fill my email and click to follow to the next page where I can fill the field with my password, until here everything normal. The problem arises when I have to click on another button to enter, I can do this.
import bs4
from selenium import webdriver
#Acessando o link
driver = webdriver.Chrome(`executable_path='/Users/gabrielmizuno/Desktop/chromedriver'`)
driver.get('https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=13&ct=1545089604&rver=7.0.6737.0&wp=MBI_SSL&wreply=https%3a%2f%2foutlook.live.com%2fowa%2f%3fauthRedirect%3dtrue%26nlp%3d1%26RpsCsrfState%3df53acbd7-cdac-5727-facb-5c96b414a0ec&id=292841&CBCXT=out&lw=1&fl=dob%2cflname%2cwld&cobrandid=90015')
#Preenchendo email e clicando
email = driver.find_element_by_id('i0116')
email.send_keys('MEU E-MAIL')
driver.find_element_by_id("idSIButton9").click()
#Preenchendo senha e clicando
senha = driver.find_element_by_id('i0118')
senha.send_keys('MINHA SENHA')
driver.find_element_by_id("idSIButton9").click()
Let me get this straight... By filling in the login values and clicking, it then fills in the password and does not click?
– RXSD
Exactly this, the email and password were filled in the correct way but when giving the last click it does not click.
– Gabriel Mizuno
It may seem obvious, but have you checked if the ID you are clicking on exists? try to check what is coming in the "driver.find_element_by_id" in the last line, in case the problem is asynchronous.
– teliz
I sent an answer to your problem, try to run and tell me if it worked blz?
– RXSD
Teliz gave a check is the ID this right
– Gabriel Mizuno
After filling in the password you can log in with the push of the enter button?
– Bulfaitelo
Ola Bulfaitelo this idea of Enter worked dps to put my email, but at the time of giving Enter in the password nothing happened
– Gabriel Mizuno