Hi all,I am new to Katalon
I have tried get size child elements(XCUIElementTypeCell) of XCUIElementTypeCollectionView follow this
Xpath it should be :
//XCUIElementTypeApplication/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeCollectionView[1]
And then i write script below :
AppiumDriver<?> driver = MobileDriverFactory.getDriver()]
ArrayList ls = driver.findElementsByXPath("//XCUIElementTypeApplication/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeCollectionView[1]/*")
println('Element found : ' + ls.size())
When i run katalon.It not found that elements
tools:
appium 1.14.0
xcode 10.2.1
katalon 6.2.1
iOS 12.3.1
Does anyone know what wrong with xpath?
Because I want to get the size for verifying text last element of XCUIElementTypeCell