A note about chrome custom tab when I tested in appium#13543
Demo apps in https://github.com/GoogleChrome/android-browser-helper helped me to check basic chrome custom tabs availability via Appium. Some apps may have custom chrome tabs. Then, I assume it requires setting chrome options properly.
My test environment had Appium 1.21.0 or newer, so possibly older ones had issues to handle chrome processes.
How to check
- Git clone the android-browser-helper repository
- Gradle build a demo app
- Get the app’s path, the package name (e.g.
org.chromium.customtabsdemos) and the activity name (e.g..DemoListActivity) - Run Appium with these app path and package names
Tips
- The device requires developer options to enable USB debug feature for a chrome browser
- An emulator must have developer options enabled to get the chrome browser’s data. Without the option,
chrome://inspectdoes not provide chrome’s tab data. It means Appium also cannot get them.
- An emulator must have developer options enabled to get the chrome browser’s data. Without the option,
- In some cases, chrome option to specify the target package name like
"chromeOptions": { "androidPackage": "com.android.beta" } appium:enableWebviewDetailsCollection: truecapability may help in some environments