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

Hi,

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()

driver.findElementByXPath("//android.widget.EditText[@id=‘PersonIDTextBox’]").sendKeys(“19660918TF98”)

driver.findElementByXPath("//android.widget.Button[@text=‘Login’]").click()

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.

LoginBtn.PNG

PersonIDTxtbox.PNG