Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't locate element with UiAutomator2 and appium 1.8.0 #930

Closed
pascalbe-dev opened this issue Jun 6, 2018 · 3 comments
Closed

Can't locate element with UiAutomator2 and appium 1.8.0 #930

pascalbe-dev opened this issue Jun 6, 2018 · 3 comments

Comments

@pascalbe-dev
Copy link

pascalbe-dev commented Jun 6, 2018

Description

Can't locate elements after upgrading to java-client 6. When I try to locate an element, I get an exception which seems to me like a version problem.

Environment

  • java client: 6.0.0
  • org.seleniumhq.selenium (selenium-java): 3.12.0
  • Appium server: 1.8.0
  • Desktop OS/version: mac OS 10.13.4
  • Node.js version: 9.7.1
  • Mobile platform/version under test: android API 26 (using ui automator)
  • Real device or emulator/simulator: emulator

Code To Reproduce Issue [ Good To Have ]

// driver creation
this.driver = ne AndroidDriver<>(serverUrl, capabilities)
// element location
@AndroidFindBy(id = "supportedCountryButton")
MobileElement selectCountryOrRegionButton;
// capabilities
platformName=android
automationName=uiautomator2
udid=emulator-5554
deviceName=android

Exception stacktraces

gist

Link to Appium logs

Can be updated if needed.

@SrinivasanTarget
Copy link
Member

@PascalBe07 Please try with latest appium server 1.8.1 with 6.0.0 Java client. It should be resolved there.

@pascalbe-dev
Copy link
Author

@SrinivasanTarget This resolved the issue, yes. Thanks.
Is there any documentation about which versions fit together in general? I think sometimes, this might help a lot.

@SrinivasanTarget
Copy link
Member

Its preferred to use latest version as it comes with lot of bug fixes and enhancements usually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants