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.

setNetworkConnection issue on Appium 1.5.3

See original GitHub issue

The problem

Hi! I’m trying to upgrade our test suite from Appium 1.4.16 to 1.5.3. Everything works fine except one test where we put the app in Airplane mode.

Environment

  • Appium version (or git revision) that exhibits the issue: git tag 1.5.3 (from source)
  • Last Appium version that did not exhibit the issue (if applicable): 1.4.16
  • Desktop OS/version used to run Appium: OS X 10.11.4
  • Node.js version (unless using Appium.app|exe): v5.10.1
  • Mobile platform/version under test: Android 4.4.4 on Genymotion
  • Real device or emulator/simulator: Emulator
  • Appium CLI or Appium.app|exe: CLI

Details

Describe in more detail the problem you have been experiencing, if necessary.

Link to Appium logs

This is the error in the Appium server: https://gist.github.com/hectorv/68622c55be23e7a0f60373a4e62af07c

and this is the error in the Python client:

In [3]: self.driver.set_network_connection(6)

/path/to/.virtualenvs/duo/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.pyc in execute(self, driver_command, params)
    234         response = self.command_executor.execute(driver_command, params)
    235         if response:
--> 236             self.error_handler.check_response(response)
    237             response['value'] = self._unwrap_value(
    238                 response.get('value', None))

/path/to/.virtualenvs/duo/lib/python2.7/site-packages/appium/webdriver/errorhandler.pyc in check_response(self, response)
     27                 raise NoSuchContextException(wde.msg, wde.screen, wde.stacktrace)
     28             else:
---> 29                 raise wde
     30

WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot set property 'ignoreUnexpectedShutdown' of undefined

Any ideas what could be going on here? Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
imurchiecommented, Jul 15, 2016

This ought to be fixed by appium-selendroid-driver@1.3.5. If you are running from source, delete node_modules and re-run npm install. If you are running from npm, re-install appium with npm install --no-shrinkwrap appium.

1reaction
JaniJegoroffcommented, Jul 13, 2016

There are couple of more issues regarding setting network connection mode that may give you more info: https://github.com/appium/appium/issues/6615 https://github.com/appium/appium/issues/6625

Read more comments on GitHub >

github_iconTop Results From Across the Web

Network Connection Guide - Appium
Retrieving the network connection settings returns the same bitmask, from which the status can be decoded.
Read more >
AppiumLibrary - GitHub Pages
AppiumLibrary is a Mobile App testing library for Robot Framework. Locating or specifying elements. All keywords in AppiumLibrary that need ...
Read more >
appium/CHANGELOG.md - UNPKG
The CDN for appium. ... 55, * Fix W3C format handling by receiveAsyncResponse command ... 895, *NOTE*: Appium 1.5.3 is primarily a bug-fix...
Read more >
appium | Yarn - Package Manager
Appium is an open-source, cross-platform test automation tool for native, hybrid, and mobile web and desktop apps. We support simulators (iOS), ...
Read more >
appium - npm
Automation for Apps.. Latest version: 1.22.3, last published: 9 months ago. Start using appium in your project by running `npm i appium`.
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