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.

Alert text becomes wrong on mobile Safari of iOS 14

See original GitHub issue

The problem

I tried to assert alert text on mobile Safari, but the text returned from Appium was different from what was actually displayed.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.22.1
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: macOS 11.6.1
  • Node.js version (unless using Appium.app|exe): 12.13.1
  • Npm or Yarn package manager: npm
  • Mobile platform/version under test: iOS 14 (FYI, the problem didn’t happen on iOS 13 or iOS 15)
  • Real device or emulator/simulator: Real device (iPhone 12)
  • Appium CLI or Appium.app|exe: CLI

Details

Our test goes like this:

But the last step failed because Appium returns alert message as I am a JS Alert\nI am a JS Alert.

  • The problem doesn’t happen on iOS 13 or iOS 15.
  • Accepting the alert works well even on iOS 14.

Capture on BrowserStack: Screen Shot 2021-12-10 at 9 34 06 AM

Link to Appium logs

(https://gist.github.com/nkns165/eaade92c05337de16a9ef6bf7e21a58d)

Code To Reproduce Issue [ Good To Have ]

Sorry I’ve not yet created it, but if necessary I’m pleased to create one.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, Dec 10, 2021

What’s the result of https://github.com/appium/appium-xcuitest-driver#mobile-source with format: description?

0reactions
nkns165commented, Dec 10, 2021

I guess your case is OS version or model specific one for now…

Oh, thanks. Then I’m going to close this issue. Thank you so much for your quick answer!

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you have an issue with Messages or FaceTime after setting ...
After setting up your iPhone, you might experience one or more of the following issues: You can't receive iMessages or FaceTime calls.
Read more >
Change notification settings on iPhone - Apple Support (IN)
Go to Settings > Notifications. · Choose how you want notifications displayed on the Lock Screen: · To schedule a notifications summary, tap...
Read more >
Unsend and edit messages on iPhone - Apple Support
A conversation in Messages showing the last message being edited. Note: To unsend or edit text messages, you must be using iMessage with...
Read more >
Set separation alerts in case you leave a device behind in ...
In the Find My app , you can turn on separation alerts for a device so you don't accidentally leave it behind. You...
Read more >
No notification sounds in ios15 be… | Apple Developer Forums
Is anyone else experiencing notifications appearing on iPhone but no sounds? ... no sound/ringing sometimes notification pops up and immediately goes away ...
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