Android: UIAUTOMATOR2: CHAIN strategy does not work
See original GitHub issueThe problem
Chain strategy does not work when finding elements. Problem does not exists when caps set to:
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.APPIUM);
Environment
- Appium version (or git revision) that exhibits the issue: 1.7.0-beta, java-client: 5.0.1
- Mobile platform/version under test: Android
- Real device or emulator/simulator: Real phone with Android 6.0
Code To Reproduce Issue [ Good To Have ]
@HowToUseLocators(androidAutomation = LocatorGroupStrategy.CHAIN)
@AndroidFindBy(id = "sliding_dashboard")
@AndroidFindBy(id = "handle_icon")
private AndroidElement switchAccountIcon;
Link to Appium logs
https://gist.github.com/amedvedjev/2da1468ca7aad98f9b827cd171e80118
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Write automated tests with UI Automator
The UI Automator testing framework is an instrumentation-based API and works with the AndroidJUnitRunner test runner. It's well-suited for ...
Read more >4. Appium "Locator strategies"
So far we have seen how to connect our real device/Emulators using Appium. In this session we will focus on how to inspect...
Read more >How To Improve Appium Test Speed and Reliability
What can you do to improve the speed and reliability of your Appium tests? Here's everything you need to know!
Read more >UIAutomator2 (Android)
The way to start a session using the UiAutomator2 driver is to include the automationName capability in your new session request, with the...
Read more >How To Identify Locators In Appium [With Examples]
Android-specific locator strategies when the Automation name is ... locator strategies do not work, we can use XPath to find the element.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
done 😃 - https://github.com/appium/java-client/issues/716
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.