How can I type the phone PIN code automatically? This one doesn’t work ->

I’m trying to automate a test case on my mobile phone, but in the “Mobile.unlockScreen()” phase, Katalon is unable to unlock the screen.

Mobile.startApplication(‘path-to-app’, false)
Mobile.checkElement(findTestObject(‘object name’), 0)

I tried the setText() method but it doesn’t work.

This one is not a blocker but I would like to know how to address this problem.

Thank you for your quick answer.

Hi there,

‘Unlock Screen’ keyword didn’t have any inputs, so you can’t use it to unlock screen if PIN is required for unlocking.

In case of your testing, you should remove PIN requirements to unlock screen and this keyword will work properly.