Question1Replies93Views×Close popoverDinesha Nagahapitiya (DineshaN8974) Melbourne Water Corporation Melbourne Water Corporation AU View ProfileSend Message DineshaN8974 Member since 2019 1 post Melbourne Water Corporation Posted: November 26, 2019Last activity: December 3, 2019Posted: 26 Nov 2019 22:08 ESTLast activity: 3 Dec 2019 19:51 EST Closed Solved data-test-id for iOS mobile automation using appiumHi,I have to automate an iOS mobile app using Selenium with Appium. We have added data-test-id to refer the elements but still i'm getting error in selenium stating that unable to find the element.Below i have attached the screenshot of the appium inspector view.Below is the HTML file for the target elementBelow is the selenium java code i used,private IOSDriver<MobileElement> driver;URL url = new URL(configFileReader.getAppiumUrl());driver = new IOSDriver<MobileElement>(url, cap);MobileElement enterValueToHeadOnWeir = driver.findElementByXPath("//input[contains(@data-test-id,'HeadOnWeir')]");enterValueToHeadOnWeir.sendKeys(configFileReader.getHeadOnWeirValue());Thanks. DevOps Testing Applications Mobile ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 1 year agoPosted: 26 Nov 2019 22:52 EST×Close popoverKalyan Gutala (gutak) PEGA Technical Lead Pegasystems Inc. IN View ProfileSend Messagegutak PEGA replied to DineshaN8974Hello Dinesh iOS: Appium Desktop CANNOT map the web element's attributes to the native element's attributes. Xpath's are always available for finding the elements and are very much helpful for automation or You can write tests using Appium and Selenium stack, but you have to code theses tests by yourself. Pega provides a Selenium-based UI test framework and sample UI tests that you can leverage to build up a test automation suite for your Pega application. Please ref the below article on the usage of Pega selenium framework https://community1.pega.com/community/pega-support/question/selenium-framework-guide See if this is helpful.