Couldn't sign to Chrome with selenium

0 votes

i tried to write script to download mail from gmail using selenium with python,

but when sign in into google via webdriver, all the time chorme is mention "This browser or app may not be secure."

i tried with adding following arguments as well  but it's not fixed yet.

options = webdriver.ChromeOptions()
options.add_argument("--incognito")
options.add_argument("--lang=en-us")
options.add_argument("--disable-web-security")
options.add_argument("--allow-running-insecure-content")
**can some one help me to get this solve....
Apr 20 in Selenium by anonymous
• 180 points
453 views

1 answer to this question.

+1 vote

The error message you are getting implies that the WebDriver was unable to authenticate the Browsing Context i.e. Browser session.

In these cases, the respective solution would be to:

Hope this helps! 

answered Apr 20 by Sirajul
• 53,110 points
Thanks for your reply.

but two factor authentication has been disabled already for this account.

is there any another ways that i can used to fix this?
Have you allowed the less secure apps for your account?
Yes, i tried with that way as well, but same error is happening again.

 This issue probably may be when multiple gmail accounts have already been created from the same App/IP/Device. Google somehow is marking those accounts and blocks them if they are launched by automation frameworks/extensions.

Here's what you could try

  • Create a fresh GMail account using a different mobile number from another device and try the same.

Related Questions In Selenium

+1 vote
1 answer

How to handle notifications in Python with Selenium (Chrome WebDriver)

Below will help you: You can disable the ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,870 points
4,967 views
0 votes
1 answer

How to setup Chrome driver with Selenium on MacOS?

Hey Nushrat, setting up Chrome driver with ...READ MORE

answered Jul 18, 2019 in Selenium by Anvi
• 14,070 points
5,477 views
0 votes
1 answer

How to avoid the pop-up window in chrome browser with Selenium?

Hi Naresh, its actually pretty easy to ...READ MORE

answered Oct 10, 2019 in Selenium by Abha
• 27,920 points
4,217 views
+1 vote
2 answers

Python with Selenium issue: “Chrome is being controlled by automated test software”

from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option("useAutomationExtension", False) chrome_options.add_experimental_option("excludeSwitches",["enable-automation"]) driver ...READ MORE

answered Apr 20 in Selenium by Manoj
2,973 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
2,641 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,870 points
2,077 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,870 points
2,191 views
+2 votes
1 answer

Selenium with C Sharp -- How to perform Explicit Wait method

The explicit wait is used to tell ...READ MORE

answered Dec 23, 2019 in Selenium by Sirajul
• 53,110 points
110 views
+2 votes
1 answer

C Sharp with Selenium -- How to Switch one tab to another tab in Csharp selenium

You could use Session.Driver.WindowHandles which is basically to switch ...READ MORE

answered Dec 23, 2019 in Selenium by Sirajul
• 53,110 points
764 views