Test pages in Chrome and Firefox on Android? #14303
Replies: 1 comment
-
If you only want to run browser tests, you don't need Appium. Appium is only required if you want to run mobile browser or native tests. So if your goal is to run tests on an Android device, you need Appium the way you described it.
I am not sure but can you try to set |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How do I setup a basic tests that simply opens up google home page using webdriver in Chrome and/or Firefox on an Android device (Android emulator) from Android Studio?
I was able to use
webdriverio
easily to open up the google homepage in Chrome or Firefox on my desktop. Do I need appium to do this? Or could I simply only use web driver? I cannot find a simple guide or example on how to do this only using Javascript.I kinda got it to work with Appium. If there is a way to do this without Appium I would still like to know.
By kinda, I mean I was able to get webdriver and appium to talk to the Android emulator and launch the default browser (Whatever the default browser app is on the device) and go to the URL of my choice. However it does not close the browser at the end of the test and this is likely because the
uiautomator2
does not support browser tests but app tests only. This is why it only launches the default browser and not any other browser, and this is why it does not close the browser since it is an app test, not a browser test.Is it possible to test browsers on Android using webdriver with or without appium?
Steps to reproduce
npm i -g appium
appium driver install uiautomator2
adb devices
to make sure device name isemulator-5554
-
npm i
node test.js
Any advice will be most appreciated.
Beta Was this translation helpful? Give feedback.
All reactions