How to test chrome mobile browser without Appium.

https://chromedriver.chromium.org/getting-started/getting-started—android

You can run chrome in android device straight from selenium:

First make sure adb version is latest:

download latest from :


https://developer.android.com/studio/releases/platform-tools

the adb will be inside the platform tool folder

Now make sure device detected

open the folder in which abd is there and run the below command ./adb

./adb devices

And make sure device shows in the list

enter image description here

make sure it is showing device and not unauthorized:

Now you can run below code:

python:

you can add experimental option (for any binding )

options = webdriver.ChromeOptions()
options.add_experimental_option('androidPackage', 'com.android.chrome')
driver = webdriver.Chrome('./chromedriver', options=options)
driver.get('https://google.com')
driver.quit()

You can see how to inspect from desktop here:

https://developers.google.com/web/tools/chrome-devtools/remote-debugging#troubleshooting
https://developers.google.com/web/tools/chrome-devtools/remote-debugging