driver.pressKeyCode(AndroidKeyCode.BACK);
driver.navigate().back()
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.nativekey.AndroidKey;
driver.pressKey(new KeyEvent().withKey(AndroidKey.BACK));
I want to click the phone back button I was using the above code, but it doesn’t
work .
I already updated the java client.