"TAP" takes no effect in 14.3 XCUIElementTypeButton
See original GitHub issueThe 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:
- Created 3 years ago
- Comments:6
Top GitHub Comments
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
Got it😁 thanks for the timely and favorable reply👍