Safari not opening with supplied launch argument on real device iOS 12.2
See original GitHub issueThe problem
Environment
- Appium version (or git revision) that exhibits the issue: 1.12.1
- Last Appium version that did not exhibit the issue (if applicable):
- Desktop OS/version used to run Appium: MacOS 10.14.4
- Node.js version (unless using Appium.app|exe): v10.11.0
- Npm or Yarn package manager: 6.9.0
- Mobile platform/version under test: iOS 12.2
- Real device or emulator/simulator: Real device
- Appium CLI or Appium.app|exe: CLI
Details
Trying to launch safari app with launch arguments does not open the safari application on that url. Safari opens normally.
This worked on device running with 12.1. After updating this no longer works on same device. I also tried on another 12.1 device and works fine (opens safari to the url specified in launch arg).
Link to Appium logs
https://gist.github.com/biwkf/ae3fea3205dd841cbfbe30d6b70d6007
Code To Reproduce Issue [ Good To Have ]
`List args = new ArrayList(); args.add(“-u”); args.add(“www.github.com”);
Map<String, Object> params = new HashMap<>();
params.put("bundleId", "com.apple.mobilesafari");
params.put("arguments", args);
driver.executeScript("mobile: launchApp", params);`
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Dosen't work correctly Safari Web Debugger in iOS 12.2 devices
I tried connect Safari Web Inspector to Safari on iOS devices(iOS 12.2.). But Nothng display any data. However It's works correctly iOS Devices...
Read more >How to launch Safari and open URL from iOS app
(Keep in mind you'll probably want to check -canOpenURL: first, just in case the URL can't be handled by apps currently installed on...
Read more >Test Configuration Options - Sauce Labs Documentation
For iOS, the value needs to be "Safari" . ... If this capability is not provided for a real device session and also...
Read more >Firebase Apple SDK Release Notes - Google
Added notification support for iOS 16 simulators on Xcode 14. ... Remote Config. Fixed cached config not loading if device is locked (#8807)....
Read more >Navigator.share() - Web APIs - MDN Web Docs
The navigator.share() method of the Web Share API invokes the native sharing mechanism of the device to share data such as text, URLs, ......
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
Not really. It has been renamed to:
--U http://test.com
cc @biwkf @techno129
Does that option work for you? In my experience it sets the URL and then the page goes back to what it was, with nothing in the history, as if it never happened.