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.

Not able to use Webview on iOS due to timeout of no targets found

See original GitHub issue

The problem

I’m refactoring the WebdriverIO demo app and it gets the latest version of the react-native-webview module which has a fix for the deprecated UIWebview API, see also https://github.com/react-native-community/react-native-webview/issues/819. When I use that module in the app the Webview can be selected but or throws a WebDriverError: An unknown server-side error occurred while processing the command. Original error: No targets found, unable to communicate with device or setting of the context of the app times out

When I use my previous version of the App, see https://github.com/webdriverio/native-demo-app/releases/tag/0.2.1, I can automate the webview, but with this version

iOS-Simulator-NativeDemoApp-0.3.1.app.zip

I can’t get this working

Environment

  • Appium version (or git revision) that exhibits the issue: 1.14.2 and 1.15.0-beta.1
  • Last Appium version that did not exhibit the issue (if applicable): -
  • Desktop OS/version used to run Appium: OSX Mojave 10.14.6 (18G95)
  • Node.js version (unless using Appium.app|exe): v10.16.3
  • Npm or Yarn package manager: npm 6.9.0
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: Sim
  • Appium CLI or Appium.app|exe: CLI

Details

It looks like it is related to https://github.com/appium/appium/issues/12935

Link to Appium logs

https://gist.github.com/wswebcreation/0839c558a26eb67664ea34006c241eff

Code To Reproduce Issue [ Good To Have ]

  1. Clone this project https://github.com/webdriverio/appium-boilerplate
  2. install all dependencies with npm install
  3. Download the app as mentioned above and place it in a folder called apps and change this line of code https://github.com/webdriverio/appium-boilerplate/blob/master/config/wdio.ios.app.conf.js#L31 to
'appium:app': join(process.cwd(), './apps/iOS-Simulator-NativeDemoApp-0.3.1.app.zip'),
  1. Run the test with this command
npm run ios.app -- --spec=./tests/specs/app.webview.spec.js

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
imurchiecommented, Sep 17, 2019

I’ve figured out the problem, which is target allocation, and am trying to figure out a workable solution.

1reaction
wswebcreationcommented, Sep 24, 2019

@imurchie

As discussed, this works with 1.15.0-rc.4 on iOS 12.2, but it doesn’t work on 13.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS App - Set Timeout for UIWebView loading - Stack Overflow
I just need to know what to put for this: -(void)webView: NSTimer * theTimer { NSLog(@"Me is here at 1 minute delay"); }...
Read more >
WebKit | Apple Developer Forums
Hi, We have an app on Objective C wherein from Monday, without any change in code, the flow of the app from the...
Read more >
Webview API - Visual Studio Code
Use the Webview API to create fully customizable views within Visual Studio Code.
Read more >
Firebase Apple SDK Release Notes - Google
Bitcode is no longer included in Firebase binary distributions. Xcode 14 does not support bitcode. tvOS apps using a Firebase binary distribution will...
Read more >
Config.xml - Apache Cordova
Example Package name for Windows. defaultlocale ==iOS== ==Windows== Specified ... Defines the set of external domains the WebView is allowed to navigate to....
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