Jump to content

Recommended Posts

Posted

Hi guys. very happy to be back. I'm having a problem that I can't auto-login google account on chrome. i tried with webdriver but got invalid device warning. login through other site link all same error. Is there a way I can log into my existing account?
I tried manually controlclick but it's inconvenient to switch to another computer.

thanks for your help!!

Posted

I recall a past discussion where some Google sites are blocking automated logins with Webdriver. However, I don't remember which thread. You should be able to use your existing profile as long as another instance of Chrome isn't already using it --

#include "wd_core.au3"

Local $sDesiredCapabilities, $sSession

SetupChrome()
_WD_Startup()
$sSession = _WD_CreateSession($sDesiredCapabilities)
_WD_Navigate($sSession, "https://gmail.com")
ConsoleWrite("URL=" & _WD_Action($sSession, 'url') & @CRLF)

Sleep(5000)

_WD_Shutdown()

Func SetupChrome()
    _WD_Option('Driver', 'chromedriver.exe')
    _WD_Option('Port', 9515)
    _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"')

    $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["--user-data-dir=C:\\Users\\' & @UserName & '\\AppData\\Local\\Google\\Chrome\\User Data\\", "--profile-directory=Default"]}}}}'
EndFunc   ;==>SetupChrome

P.S. This info is covered in the Webdriver Wiki FAQ section

Posted
  On 9/6/2021 at 6:48 PM, Danp2 said:

I recall a past discussion where some Google sites are blocking automated logins with Webdriver. However, I don't remember which thread. You should be able to use your existing profile as long as another instance of Chrome isn't already using it --

#include "wd_core.au3"

Local $sDesiredCapabilities, $sSession

SetupChrome()
_WD_Startup()
$sSession = _WD_CreateSession($sDesiredCapabilities)
_WD_Navigate($sSession, "https://gmail.com")
ConsoleWrite("URL=" & _WD_Action($sSession, 'url') & @CRLF)

Sleep(5000)

_WD_Shutdown()

Func SetupChrome()
    _WD_Option('Driver', 'chromedriver.exe')
    _WD_Option('Port', 9515)
    _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"')

    $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["--user-data-dir=C:\\Users\\' & @UserName & '\\AppData\\Local\\Google\\Chrome\\User Data\\", "--profile-directory=Default"]}}}}'
EndFunc   ;==>SetupChrome

P.S. This info is covered in the Webdriver Wiki FAQ section

Expand  

the use of the old configuration is familiar. however i want to initialize large number of users by auto. it makes the following operations better. 

  • Moderators
Posted

neypro,

I second Danp2's request.

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted
  On 9/8/2021 at 12:23 AM, Danp2 said:

Please elaborate on why you need to do this.

Expand  

in order to perform related operations google forced me to log in before using. i am managing about 200 personal mail and i want it to be logged in before i start working manually

Posted
  On 9/8/2021 at 7:29 AM, Melba23 said:

neypro,

I second Danp2's request.

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

Expand  

oh. I see somehow other people can still create profiles in bulk

  • 5 months later...
Posted

I made a Google account login via WebDriver however there were warnings:"This browser or app may not be secure. Learn more
Try using a different browser. If you’re already using a supported browser, you can try again to sign in."
I have used the new Firefox Portable version and the old version (87) However, it is not effective.
I have seen many people still login, don't understand why. :(

Posted (edited)

i have done the above steps on the web but all cannot get me to sign in to google account i have tried different versions of the browser all have the same warning. have you tried doing this?

Edited by neypro
Posted
  On 2/17/2022 at 12:19 PM, Danp2 said:

@neyproThis is a login restriction implemented by Google. You can find a few suggested workarounds if you search the web.

Expand  

i have done the above steps on the web but all cannot get me to sign in to google account i have tried different versions of the browser all have the same warning. have you tried doing this?

  • Moderators
Posted

neypro,

You have failed to answer my questions in this and the other thread - which posts are now merged here. You will be unable to post again until I get a reply from you via PM.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...