When checking alert messages in Safari on an iOS real device, some models may acquire a different message than the one actually displayed.
For example, if an alert displays the message "I am a JS Alert", it may be acquired as "I am a JS Alert|nl am a JS Alert" (where |nl represents a new line).
Cause and Workaround
- This is a known issue with MagicPod-based OSS and Appium projects, and there are currently no plans for a fix.
- As a workaround, use the Assert alert message contains command instead of Assert alert message equals to avoid validation failures.
Affected Environments
This issue has been confirmed in the following environments:
- Environment: External Cloud (BrowserStack)
- OS: iOS 14.1
- Device: iPhone 12