setNetworkConnection issue on Appium 1.5.3
See original GitHub issueThe 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:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top 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 >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
This ought to be fixed by
appium-selendroid-driver@1.3.5
. If you are running from source, deletenode_modules
and re-runnpm install
. If you are running fromnpm
, re-install appium withnpm install --no-shrinkwrap appium
.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