appium-desktop icon indicating copy to clipboard operation
appium-desktop copied to clipboard

Unable to Identify Xpath in iOS 14 devices with Appium 1.18.3

Open JYOTIPRAKASH225 opened this issue 4 years ago • 3 comments

Unable to Identify Xpath in iOS 14 devices with Appium 1.18.3

Environment

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

JYOTIPRAKASH225 avatar Oct 25 '20 08:10 JYOTIPRAKASH225

Appium version (or git revision) that exhibits the issue: 1.18.3 Last Appium version that did not exhibit the issue (if applicable): 1.15.1

Do you mean you compared this result with both environments for iOS 14? Then, could you share the full page source with us on the page?

KazuCocoa avatar Oct 25 '20 16:10 KazuCocoa

I am also facing issue with Appium V1.18.3, Electron 7.2.4, Node.js 12.8.1 on Mac OS Catalina 10.15.7 I cannot see many attributes to identify the objects, so used Xpath but Appium is unable to identify objects in simulator for iphone 8 with 14.1 IOS.

victoryconch avatar Nov 25 '20 08:11 victoryconch

Then, how about to use predicate or class chain? https://appiumpro.com/editions/8-how-to-find-elements-in-ios-not-by-xpath

Basically, XPath in iOS is not so reliable while we've tried to support it as possible for backward compatibility with tricks. They could be break in newer versions. But we do not recommend using it as possible.

Search the app XML source using xpath (not recommended, has performance issues) http://appium.io/docs/en/commands/element/find-elements/

Or you can try out the latest appium beta via npm as https://github.com/appium/appium-desktop#connect-to-local-appium-server

KazuCocoa avatar Nov 25 '20 08:11 KazuCocoa