question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using @* in xpath is throwing a error message in 1.22.1 release

See original GitHub issue

The problem

Using @* in xpath is throwing a error message in 1.22.1 release e.g: //[@=‘Hello’] //[contains(@,‘Hello’)] (//[contains(@,‘Hello’)])[last()]

Screenshot 2021-11-22 at 12 18 17 PM

Environment

  • Appium version (or git revision) that exhibits the issue: 1.22.1
  • Last Appium version that did not exhibit the issue (if applicable): 1.22
  • Desktop OS/version used to run Appium: NA
  • Node.js version (unless using Appium.app|exe): NA
  • Npm or Yarn package manager: NA
  • Mobile platform/version under test: Android 11 / ISO 15
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe:

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

Create a GIST which is a paste of your full Appium logs, and link them here. Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs!

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.

Please git clone https://github.com/appium/appium and from the sample-code directory, use one of your favourite languages and sample apps to reproduce the issue.

In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mykola-mokhnachcommented, Jan 3, 2022

I did several experiments locally and it looks like the issue lies in the Eclipse’s xpath2 processor itself and is specific only to queries containing following or preceding axes. I’ve reported an issue to them. Lets see what the response would be. Maybe we’d need to have a temporary setting, which would allow to switch back to use xpath1 if we get no response from the Eclipse team soon.

1reaction
jlippscommented, Nov 22, 2021

This is a good example of why it’s beneficial to switch to Appium 2.0, so that you can choose to upgrade the android driver or not without it affecting upgrade paths for Appium or other drivers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Driver exception for xpath - Issues/Bugs - Appium Discuss
Hello, I'm experiencing an issue when dealing with some complex ... Issue: Using @* in xpath is throwing a error message in 1.22.1...
Read more >
Getting error on invalid xpath, but able to hit the element while ...
All actions results in invalid xpath expression error only when running the test on the browser but while manually checking the xpath on...
Read more >
WFS 2.0 (ISO 19142:2010) Conformance Test Suite
1.37 (2022-01-24). This release includes the changes listed below. Fix #191: Test intersectsCurve fails with Predicate Intersects not satisfied by arguments ...
Read more >
appium/CHANGELOG.md - UNPKG
67, Appium 1.7.1 fixes multiple issues with the previous release. ... 1070, - fixed unknown server-side error is thrown when the XPath expression...
Read more >
Unable to locate an element using xpath error in selenium-java
Check if there is any syntax error in our xpath expression. · Add additional expected wait conditions for the element. · Use an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found