Answer the question
In order to leave comments, you need to log in
How to login to gmail using SeleniumWebDriver?
Good afternoon. The problem is that it is not possible to log in via WebDriver in Google. The code looks like this:
$driver = New-Object OpenQA.Selenium.Chrome.ChromeDriver
$driver.Navigate().GoToUrl(" https://accounts.google.com/ServiceLogin?service=a... ")
$login = $driver.FindElementById("Email")
$login.sendkeys("login here")
$driver.FindElementById("next").Click()
$driver.FindElementById("Passwd").Clear()
$driver.FindElementById( "Passwd").sendkeys('password here')
$driver.FindElementById("signIn").Click()
No password
Answer the question
In order to leave comments, you need to log in
Opened the page - made a screen. Entered login - made a screen. Entered the password - made a screen. Submit the form and take a screenshot. Those. let's cover every step. Then we look at a pack of resulting screenshots and think at what step the problem arose.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question