Skip to content

Appium IOS driver could not identify subview elements from ListView #666

@Brad19

Description

@Brad19

Description

Context - React-Native App

I'm trying to identify the elements inside the ListView using appium IOS driver, but it looks like it can't identify the sub view element at all for IOS. Whereas in android it works good. It looks like XCUITEST might have some issue or some settings to be changed. Not sure why this is not working. The Appium inspector or macaca inspector doesn't identify the elements inside subview.

Is this something to do with Appium which doesn't support this or XCTest framework issue. If anyone has any work around, Please provide me and it'll be much helpful.

Environment

Jdk: Jdk- 1.8.0_121
Appium server: 1.6.6beta
capability settings:
capabilities.setCapability("deviceName", "iPhone 7");
capabilities.setCapability("platformName", "iOS" );
capabilities.setCapability("platformVersion", "10.3");
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("appPackage", "au.com.forex.iphone");
capabilities.setCapability("appActivity","");

and using the following code IOS driver
iosDriver = new IOSDriver<>(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
XCode: 8.3.3
node version: v8.1.2
IOS emulator: 10.3 - Iphone 7
Project type: Maven
Pom.xml:
<dependencies> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.3.1</version> <scope>Test</scope> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.10</version> <scope>Test</scope> </dependency> <dependency> <groupId>io.appium</groupId> <artifactId>java-client</artifactId> <version>5.0.0-BETA9</version> </dependency> </dependencies>

Details

Please find the attachment for both IOS and Android.

Code To Reproduce Issue [ Good To Have ]

I used the following path shown from screenshots below.

//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeScrollView[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]

The above points the list item and no there is no element recognised under the path below

Exception stacktraces

NA

Link to Appium logs

NA
Android
android

IOS
ios

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions