New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Login not working when browser is started with Rod #1033
Comments
Update: seems like google is detecting if the browser is run in debug-mode -> https://stackoverflow.com/a/59673634/13008147 |
Update: generated my own JS from the puppeteer stealth plugin with these 2 options: const stealth = StealthPlugin()
stealth.enabledEvasions.delete('iframe.contentWindow')
stealth.enabledEvasions.delete('media.codecs')
puppeteer.use(stealth) as mentioned here: berstend/puppeteer-extra#822 (comment) Doesn't help |
Update: if I use .NewUserMode() with headless=false, it seems to work. However when I run it headlessly it fails, I thought due user-agent (includes headless) but overriding the user-agent doesn't work either |
You can use the rod/lib/launcher/example_test.go Lines 26 to 46 in ab8740f
|
Th only difference between running headless and running not headless is the user-data-dir. But that one is different on each run. Not headless: args [--disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-features=site-per-process,TranslateUI --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --enable-automation --enable-features=NetworkService,NetworkServiceInProcess --force-color-profile=srgb --headless --metrics-recording-only --no-first-run --no-startup-window --remote-debugging-port=0 --use-mock-keychain --user-data-dir=/var/folders/sz/n6cyhc1x1qjd7m1wl04tn8mr0000gn/T/rod/user-data/9699488a8a9c9dc3] Headless: args [--disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-features=site-per-process,TranslateUI --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --enable-automation --enable-features=NetworkService,NetworkServiceInProcess --force-color-profile=srgb --headless --metrics-recording-only --no-first-run --no-startup-window --remote-debugging-port=0 --use-mock-keychain --user-data-dir=/var/folders/sz/n6cyhc1x1qjd7m1wl04tn8mr0000gn/T/rod/user-data/2af72e923ad51328] Also how is it possible that they both have the |
Could you try the v0.115.0 |
@ysmood same problem |
Works fine to me: package main
import (
"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/utils"
)
func main() {
browser := rod.New().NoDefaultDevice().MustConnect()
page := browser.MustPage("https://google.com")
page.MustElement(".gb_Ld").MustClick() // Click login
utils.Pause()
} |
@ysmood fill out details until you are at the password input page. That's where it says that the browser is not secure. |
Still works fine to me after enter the mail address. |
我也是同样的问题,请问有解决办法吗? |
Rod Version: v0.114.8
This is my startup code:
This sees the right chrome instance but when it starts it somehow starts unsecure.
Whenever I start the normal browser and add the websocket url in the Go program, it does work.
The text was updated successfully, but these errors were encountered: