Not able to use Webview on iOS due to timeout of no targets found
See original GitHub issueThe 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
and1.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 ]
- Clone this project https://github.com/webdriverio/appium-boilerplate
- install all dependencies with
npm install
- 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'),
- Run the test with this command
npm run ios.app -- --spec=./tests/specs/app.webview.spec.js
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
I’ve figured out the problem, which is target allocation, and am trying to figure out a workable solution.
@imurchie
As discussed, this works with
1.15.0-rc.4
on iOS12.2
, but it doesn’t work on13.0