Unlock Android Mobile With Pin Code Programmatically Selenium Mobile Automation
I have a task that I need to write Android mobile test automation using Appium and selenium in Java.I have to do scenario that phone has to be unlock using PINCODE pro-grammatical
Solution 1:
There is no capability in Appium to unlock the pattern/pin lock though appium can wake our device up. To lock/Unlock the screen we need to use ADB commands, below are few examples you can give a try to:
To wake the device from sleep mode
adb shell input keyevent KEYCODE_POWER
To swipe up for obtainging the PIN screen
adb shell input swipe 800400400400Enter PIN
adb shell input text 0000Tap on Enter to unlock
adb shell input keyevent KEYCODE_ENTER
Post a Comment for "Unlock Android Mobile With Pin Code Programmatically Selenium Mobile Automation"