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

IOSDriver is able to find an element with FindElementsByAccessibilityId but not with FindElementByAccessibilityId #13866

Closed
timonHa opened this issue Jan 22, 2020 · 3 comments
Labels
Needs Info typically non-actionable; needs author to respond XCUITest regarding xcuitest driver

Comments

@timonHa
Copy link

timonHa commented Jan 22, 2020

The problem

IOSDriver is finds one element with FindElementByAccessibilityId. With method FindElementByAccessibilityId IOSDriver is unable to find the element.

var tests = Driver.FindElementsByAccessibilityId("Btn");

var test = Driver.FindElementByAccessibilityId("Btn");

Environment

  • Appium version (or git revision) that exhibits the issue: 1.15.1
  • Last Appium version that did not exhibit the issue (if applicable): 1.13
  • Desktop OS/version used to run Appium: macOS 10.15.2
  • Node.js version (unless using Appium.app|exe): 12.14.1
  • Npm or Yarn package manager: 6.13.4
  • Mobile platform/version under test: iOS 13.3
  • Real device or emulator/simulator: real device
  • Appium CLI or Appium.app|exe: Appium.app

Link to Appium logs

https://gist.github.com/timonHa/27b59a107baa0860f7dc9fb96cc4c267

@mykola-mokhnach
Copy link
Collaborator

According to the WDA code this might happen if the exists property of the found element is falsy. Although, this property is not verified if the query is executed for multiple elements. Could it be the case here? What is the page source output and the device log when both queries are being executed?

@mykola-mokhnach mykola-mokhnach added Needs Info typically non-actionable; needs author to respond XCUITest regarding xcuitest driver labels Jan 22, 2020
@timonHa
Copy link
Author

timonHa commented Jan 23, 2020

Sry, I'm new to testing iOS Devices with Appium.

@mykola-mokhnach
Copy link
Collaborator

upgrading to appium 1.16.0 is not possible, because the version is no longer
available.

It does exist and could be installed via npm

Regarding the other questions - feel free to ask them at Appium forum
Here is the place for issues.

@timonHa timonHa closed this as completed Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Info typically non-actionable; needs author to respond XCUITest regarding xcuitest driver
Projects
None yet
Development

No branches or pull requests

2 participants