Skip to content
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

Can I disable the translate popup and save the password? #1117

Closed
builuc1998 opened this issue Jul 18, 2022 · 4 comments
Closed

Can I disable the translate popup and save the password? #1117

builuc1998 opened this issue Jul 18, 2022 · 4 comments

Comments

@builuc1998
Copy link

builuc1998 commented Jul 18, 2022

Hello I am currently using chromedp and facing the problem that when visiting a certain website or logging in, it shows a popup. i tried to find a lot of ways to turn it off but no success. Anyone know how to turn it off please help me. Thank you very much

below is my initialization code

myDefaultExecAllocatorOptions := [...]chromedp.ExecAllocatorOption{
chromedp.NoFirstRun,
chromedp.NoDefaultBrowserCheck,

// After Puppeteer's default behavior.
chromedp.Flag("disable-background-networking", true),
chromedp.Flag("enable-features", "NetworkService,NetworkServiceInProcess"),
chromedp.Flag("disable-background-timer-throttling", true),
chromedp.Flag("disable-backgrounding-occluded-windows", true),
chromedp.Flag("disable-breakpad", true),
chromedp.Flag("disable-client-side-phishing-detection", true),
chromedp.Flag("disable-default-apps", true),
chromedp.Flag("disable-dev-shm-usage", true),
chromedp.Flag("disable-extensions", true),
chromedp.Flag("disable-features", "site-per-process,TranslateUI,BlinkGenPropertyTrees"),
chromedp.Flag("disable-hang-monitor", true),
chromedp.Flag("disable-ipc-flooding-protection", true),
chromedp.Flag("disable-popup-blocking", true),
chromedp.Flag("disable-prompt-on-repost", true),
chromedp.Flag("disable-renderer-backgrounding", true),
chromedp.Flag("disable-sync", true),
chromedp.Flag("force-color-profile", "srgb"),
chromedp.Flag("metrics-recording-only", true),
chromedp.Flag("safebrowsing-disable-auto-update", true),
chromedp.Flag("enable-automation", true),
chromedp.Flag("password-store", "basic"),
chromedp.Flag("use-mock-keychain", true),
chromedp.Flag("disable-web-security", true),
}

popup_save_password
popup_translate

@ZekeLu
Copy link
Member

ZekeLu commented Jul 18, 2022

For the translate popup, the feature name has been changed from TranslateUI to Translate. See #796.

You should create the options like this:

	myDefaultExecAllocatorOptions := append(chromedp.DefaultExecAllocatorOptions[:],
		// only add the options that are not provided by chromedp.DefaultExecAllocatorOptions
		// and that need to be changed below.
	)

This should fix the translate popup issue. Maybe it will address the password popup issue too. Please comment if it doesn't.

@builuc1998
Copy link
Author

builuc1998 commented Jul 18, 2022

@ZekeLu I used it according to your instructions but the save password popup still shows up every time I log in.

myDefaultExecAllocatorOptions := append(chromedp.DefaultExecAllocatorOptions[:],
		// only add the options that are not provided by chromedp.DefaultExecAllocatorOptions
		// and that need to be changed below.
	)

@builuc1998
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants