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

[Question] Does anyone know how to get rid of Chrome push notifications popup before starting tests on Android Emulator #811

Open
pawlakmaly opened this issue Aug 7, 2024 · 1 comment

Comments

@pawlakmaly
Copy link

Hi all,

I want to get rid of this
image
Which is displayed displayed every time I restart/recreate my emulator in docker.

I was able to bypass the welcome screen using '--disable-fre' flag. I've tried different flags as well, but with any success.

Does any one know how to do dat using adb, capabilities or or any other method that requires clicking ?

@pawlakmaly pawlakmaly changed the title [Question] Does anyone know hot to get rid of Chrome push notifications popup before starting tests on Android Emulator [Question] Does anyone know how to get rid of Chrome push notifications popup before starting tests on Android Emulator Aug 7, 2024
@itkhanz
Copy link

itkhanz commented Jan 22, 2025

I am looking for solution this as well, I reset the chrome browser on real android device after each test execution via ADB shell command adb -s UDID shell pm clear com.android.chrome. This reset is needed so that each test uses a fresh browser without any cache or browser data from the previous test execution.

and then on the next test execution I get this popup which needs to be manually closed before i can interact with the webpage in chrome browser.

@mykola-mokhnach Perhaps you know if there is a way to bypass this popup on android devices? maybe there is some chrome option appium:chromeOptions that is needed to be passed while creating driver session?

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