Open JuanCarlos-Arceredillo opened 2 years ago
Just in my curiosity.
I haven't checked code, but does driver.back()
work to get back to the previous app in this case?
Hi @KazuCocoa ,
It should, but with espresso this command only works if the app is in foreground, if you changes it to background opening another app, espresso doesn't respond to any command. On the other hand, UiAutomator does, that's the reason of my request
Hi,
First of all, I know that the purpose of this driver is not to use UiAutomator2, but during my tests I have detected a special situation that Espresso can't handle because of its restrictions for the foreground app. I guess that it could be fixed with a workaround running a command on UiAutomator2.
The situation is when the app opens an external app ( browser, phone, email, etc. ). Once the second app is opened, espresso doesn't respond until we set it in foreground again, but UiAutomator2 does.
If we could run a command using mobile: uiautomator to click on the system back button, it could be great.
I have tried with the current version of appium 1.22 and with EspressoDriver version 1.45.3