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.

"TAP" takes no effect in 14.3 XCUIElementTypeButton

See original GitHub issue

The problem

Helle there, the problem here is I upgrade my iPhone from 14.2 to 14.3 (accidentally). Before this sad thing happens, I write some scripts and successfully automatically help me doing some UI testing staffs. However, things don’t work out for now.

Environment

  • Appium version: Old one for 14.2 is 1.18 and I update to the latest 1.20, the problem still remains
  • Last Appium version that did not exhibit the issue: 1.18 functions well with 14.2
  • Desktop OS/version used to run Appium: macOS 10.15.6
  • Node.js version (unless using Appium.app|exe): v14.15.1
  • Npm or Yarn package manager: Npm
  • Mobile platform/version under test: iOS 14.3
  • Real device or emulator/simulator: Real Device
  • Appium CLI or Appium.app|exe: In fact, I use Appium Desktop (dmg) for ease

Details

I can take a quick example here, like testflight apps. I launch the appium desktop with inspector session like below configs (as I always do with 14.2 iOS)

{
  "platformName": "iOS",
  "platformVersion": "14.3",
  "deviceName": "iPhone7",
  "udid": "...",
  "bundleId": "com.apple.TestFlight",
  "automationName": "XCUITest",
  "xcodeOrgId": "...",
  "xcodeSigningId": "iPhone Developer"
}

The inspector can successfully launch the Testflight. But after that, when I try to search some buttons and tap them. However, though I can find the XCUIElementTypeButton with predicate or XML path. The tap is not working out. In my old 14.2, after tap the XCUIElementTypeButton will change its color but totally nothing happens with this 14.3 iOS

Link to Appium logs

=> https://gist.github.com/f0rm2l1n/44e7cfcbe5cb1c87f2b54b50ac69be64 Not really familiar with the log, seems the click successfully return

Others

I reinstall Appium-desktop for a try but still fails. Wonder anyone also get into trouble like this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Jan 18, 2021

The coordinates are returned by XCTest. Only Apple can fix that. For your case the only possible workaround would be to shift coordinates manually in your client code

0reactions
f0rm2l1ncommented, Jan 18, 2021

Got it😁 thanks for the timely and favorable reply👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xctest: Tap "Done" Button In Sfsafariviewcontroller - ADocLib
Found myself the answer by recording a tap on my label and see which code ... TAP takes no effect in 14.3 XCUIElementTypeButton...
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