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.

driver.setUrl not working on ios Real device

See original GitHub issue

The problem

driver.seturl api fails in ios real device with error

“value”:"Failed to open

Environment

  • Appium version : 1.7.1.
  • OS : MacOS High Sierra 10.13.1
  • Node.js version : v8.6.0
  • Mobile platform/version under test: iphone 5s . iOS : 11.1
  • Real device
  • Appium desktop version : 1.2.6

Note

The same code and config is working on simulator.

Link to Appium logs

Appium logs can be found here

Client logs marks the error as following : Error: [get(“http://www.google.co.in”)] Error response status: 13, UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Failed to open http://www.google.co.in

Code To Reproduce Issue [ Good To Have ]

javascript webdriver is being used to connect to the appium server.

driver = wd.promiseChainRemote(serverConfig); driver.init(desired).backgroundApp(0).get("http://www.google.co.in");

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Dec 11, 2017

You should be in web context in order to use this endpoint. The fact that it does not work from native context on real devices is known XCTest limitation and it cannot be workarounded.

0reactions
lock[bot]commented, Apr 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

driver.get is not working real device with IOS 11.2.6 + #12047
When i call driver.get(deeplink), simctl returns an error saying my UDID is an invalid device. Seems it's assuming my target device is a ......
Read more >
Appium `get` command not working on iOS real device
Im automating a test using Appium / Ruby. My test runs the following steps: start app; do something; launch browser; go back to...
Read more >
Safari getting launched on ios simulator, but not able to get url ...
The problem driver.seturl api fails in ios real device with error "value":"Failed to open Environment Appium version : 1.7.1. OS : MacOS High ......
Read more >
Safari getting launched on ios simulator but not able to get url ...
Below is my code for reference: ios simulator is getting launched, ... as the endpoint does not work properly on real devices due...
Read more >
Use driver.setUrl in Appium Android Driver With Examples
Run Appium Android Driver automation tests on LambdaTest cloud grid ... Perform automation testing on 3000+ real desktop and mobile devices online. Sign...
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