S
S
Sergey Permyakov2016-12-02 07:58:15
Google
Sergey Permyakov, 2016-12-02 07:58:15

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

2 answer(s)
A
Alexey Sundukov, 2016-12-02
@alekciy

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.

E
Evgeniy _, 2016-12-02
@GeneD88

А для чего вы хотите там авторизироваться? Вы же не тестируете gmail ...
В зависимости от ответа - будем искать лечение)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question