-
-
Notifications
You must be signed in to change notification settings - Fork 765
Description
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

