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
Error on default activity that starts chrome browser on android 13 #17492
Comments
The error is coming from chromedriver itself. Please consider reporting it to Google. UIA2 driver acts as a simple proxy there |
Closed as third party issue |
Hey, Thanks for looking into this issue # #17632 and marking as duplicate to this. Could you please confirm if you meant the log excerpt below is from Chromedriver or appium-chromedriver?
Also can you please point the line of code in UIA2 driver where a call is made to Chromedriver? Thanks, |
The below log means appium sendt the capabilities to the local chromedriver like https://chromedriver.chromium.org/getting-started/getting-started---android#h.p_ID_390 does. Then, appium got the response. So the
The request to the chrome itself occurs in https://github.com/appium/appium-chromedriver/blob/ca97ac7c4c230d52d001bf4d854ab54ac371d908/lib/chromedriver.js#L597 |
Hello, Thanks for the quick reply, appreciate it! I have verified with Chrome Driver without Appium Proxy and seeing the same issue. Thanks, |
Facing the same issue.. Do I understand it correctly, that due to the fact, that this is third party issue (chromedriver itself) - there is no solution for it and we can not start Chrome Browser on the Android 13 currently? |
As a workaround in Appium. you can start a chrome browser session with You also can do some interactions in the NATIVE_APP context. |
Hi @KazuCocoa, I'm also facing the same issue and I tried implementing your workaround but I get this error, and chrome is installed on the phone: Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.android.chrome' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Cannot start the 'com.android.chrome' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Activity name '.com.google.android.apps.chrome.Main' used to start the app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity |
Hey @KazuCocoa thanks a lot! Worked perfectly for me! BaseMobilePage: Test: // And now go to homepage if/Android 13 workaround because of Chrome bug:/ (platformVersion.equals("13")) { |
@jaylazda point at the start of the Activity name? I have given it as "com.google.android.apps.chrome.Main" without any point at the start |
@mikhailnersesov thanks but here are my capabilities, not sure why the . appears in the error message... |
@jaylazda try to compare if you have exactly those package and activity on your phone: https://www.automationtestinghub.com/apppackage-and-appactivity-name/ |
@jaylazda it does not look like a capabiliites problem, while with your set of capabilities - i did not receive this error by my project.. |
Thanks for checking. I just checked with APK info and chrome has the same appActivity and package as in my capabilities. |
Potentially another workaround might be needed in your environment to start a chrome browser process... Could the chrome browser version be related? |
According to https://bugs.chromium.org/p/chromedriver/issues/detail?id=4193&sort=status%20-id&q=com.android.chrome&can=2, Chrome 110 will have a fix for this issue. |
[update]
#17492 (comment) is a workaround in Appium
The problem
When starting chrome browser on android 13 I get
Activity class {com.android.chrome/com.google.android.apps.chrome.Main} does not exist.
It comes with the fact that chrome browser is started diiferently on newest android version (full description here (https://automationchronicles.com/error-when-opening-chrome-on-android-13-via-adb/). My solution is changing activity tocom.google.android.apps.chrome.IntentDispatcher
with added -d flag and default url or changing action toandroid.intent.action.MAIN
.Environment
Link to Appium logs
https://gist.github.com/Hubert-Rudzik/3daaac080a6b6b42347569f0dde4afcd
The text was updated successfully, but these errors were encountered: