Alert text becomes wrong on mobile Safari of iOS 14
See original GitHub issueThe 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:
- Navigate to https://the-internet.herokuapp.com/javascript_alerts
- Click
Click for JS Alert
button - Assert the alert text is
I am a JS Alert
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:
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:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What’s the result of https://github.com/appium/appium-xcuitest-driver#mobile-source with
format: description
?Oh, thanks. Then I’m going to close this issue. Thank you so much for your quick answer!