neypro Posted September 6, 2021 Posted September 6, 2021 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!!
Danp2 Posted September 6, 2021 Posted September 6, 2021 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 Latest Webdriver UDF Release Webdriver Wiki FAQs
neypro Posted September 7, 2021 Author Posted September 7, 2021 10 hours ago, 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 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.
Danp2 Posted September 8, 2021 Posted September 8, 2021 18 hours ago, neypro said: however i want to initialize large number of users by auto. Please elaborate on why you need to do this. Earthshine 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
Moderators Melba23 Posted September 8, 2021 Moderators Posted September 8, 2021 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. 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
neypro Posted September 9, 2021 Author Posted September 9, 2021 On 9/8/2021 at 7:23 AM, Danp2 said: Please elaborate on why you need to do this. 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
neypro Posted September 9, 2021 Author Posted September 9, 2021 19 hours ago, 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. oh. I see somehow other people can still create profiles in bulk
neypro Posted February 17, 2022 Author Posted February 17, 2022 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. :(
Danp2 Posted February 17, 2022 Posted February 17, 2022 @neyproThis is a login restriction implemented by Google. You can find a few suggested workarounds if you search the web. Latest Webdriver UDF Release Webdriver Wiki FAQs
neypro Posted February 17, 2022 Author Posted February 17, 2022 (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 February 17, 2022 by neypro
neypro Posted February 17, 2022 Author Posted February 17, 2022 4 minutes ago, Danp2 said: @neyproThis is a login restriction implemented by Google. You can find a few suggested workarounds if you search the web. 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 Melba23 Posted February 18, 2022 Moderators Posted February 18, 2022 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 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now