Thursday, 22 September 2016

2) Migration IOS Appium tests from UIAutomation to XCUITest

Most of the Elements have changed after Instruments have moved form UIAutomation to XCUITest
Hence all references using classnames and xpaths in Appium Automation must be updated to run from Appium 1.6.0 onwards
at the moment its in beta
Look at installation procedure here - http://mytechlifez.blogspot.co.uk/2016/09/appium-1.6.0-beta1-installation-xcode8-ios10.html

Table elements

Table / Row
UIATableview -> XCUIElementTypeTable
UItableviewcell -> XCUIElementTypeCell

Choose row 1 in a table using xpath- 
"///XCUIElementTypeTable[1]/XCUIElementTypeCell[1]/XCUIElementTypeStaticText[1]"
"//XCUIElementTypeCell[1]/XCUIElementTypeStaticText[1]"

XCUItest iOShttps://discuss.appium.io/t/appium-xcuitest-example-how-to-get-started-appium-using-xcuitest-for-real-device/12415/4//Migrating from UIAutomation to XCUItestUIAButton changes into  XCUIElementTypeButton
UIA***    --> XCUIElementType***
UIAStaticText -> XCUIElementTypeStaticText
UIATableView -> XCUIElementTypeTable
UIANavigationBar -> XCUIElementTypeNavigationBar

Buttons


"UIABUtton" is replaced by "XCUIElementTypeButton"

1 comment:

  1. Best place to learn Appium Android IOS Automation Testing Training in Chennai

    Go for Appium training in chennai for real time mobile automation testing training with real time project support.
    UI Automation Tools with real time scenarios You can contact 8122241286 for Best APPIUM and selenium Training in Chennai

    ReplyDelete