Not able to find the element for native mobile app using xpath


I am trying to automate native mobile app using xpath . But Katalon studio is not able to identify the elements using xpath.

Please find the below code:-

APKPath = findTestData(‘InternalTestData’).getValue(‘APK_Path’, 1)

Mobile.startApplication(APKPath, true)

‘Enter Login Details’

Mobile.waitForElementPresent(findTestObject(‘Object Repository/xxx_LoginPg/LoginPg_DefaultScreen’), 20)

‘Enter LoginID details’

AppiumDriver<?> driver = MobileDriverFactory.getDriver()



Error message:-

Test1 FAILED because (of) org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 0 milliseconds

For documentation on this error, please visit: Selenium

Find the attached screenshot for the properties of PersonID and Login.