Can I press back button of android emulator using selenium web driver?
Looking for help.
I was using Selenium with Appium and Android emulator, succeeded with
webdriver.navigate().back();
Run the below command from my java class. It helps me to press back button.
Runtime.getRuntime().exec("cmd /K cd " +"../libs/android-sdk-windows/platform-tools");
Runtime.getRuntime().exec("cmd /C adb shell input keyevent 4");
Hope it will help others
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With