Skip to main content

ClearPasscode

Description

Use this command to clears the passcode from the device. It returns true only if it was cleared successfully.

info
  • It is recommended to use this on a supervised device.
  • This command is supported in iOS only.

Usage

info

Replace <server> with the appropriate URL.

ClearPasscode

DesiredCapabilities dc = new DesiredCapabilities();
driver = new IOSDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
             
...
...
if(seetest.clearPasscode()) {
System.out.println("Passcode cleared successfully");
} else {
System.out.println("Failed to clear passcode");
}