I'm trying to create a framework that will automate my mobile website tests. I will be using firebase test lab which only supports espresso and UI Automator. I only have experience with Appium for mobile testing. I was wondering if there's any way to automate browser actions in Espresso or UI Automator. I can't really find anything online, no example whatsoever. Tldr is possible to control browser with espresso or UI Automator or do they only work with provided apk?
I've just took a look into firebase test lab and they state that
Firebase Test Lab is a cloud-based app-testing infrastructure
So picking firebase test lab as a framework for testing web-sites through the well-known browsers seems to be a wrong choice since you need to have the access to the application code that you're going to test.
There's no way at the moment to test a website using espresso or uiautomator via the standalone browser i.e. chrome.apk on Android.
You can open a chrome.apk and inject a website URL using uiautomator, but you can't interact with it enough, to make testable.
You should probably choose other cloud device lab provider, for example:
They all support Appium:
TestDroid Sauce labs Perfecto Mobile Kobiton Amazon AWS Device farm Xamarin Test Cloud Experitest pCloudy BrowserStack