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.

Unable to turn off wifi with appium 2.0.0-beta.35

See original GitHub issue

The problem

Unable to turn off wifi with appium 2.0.0-beta.35 but with appium 1.22.2

Environment

using: https://github.com/appium/appium-docker-android with appium@next

  • Appium CLI: 2.0.0-beta.35 installed by npm
  • Last Appium version that did not exhibit the issue (been used for testing): 1.22.2
  • Drivers (only for Appium2):
    • uiautomator2@2.1.1
  • Node.js: v12.22.12/v16.15.0
  • Mobile devices:
    • nokia7.2: android 10
    • nokia g50: android 12
    • samsung s22: android 12
    • samsung a52: android 11
  • android SDK (the same between v1.22.2 && 2.0.0-beta.35) image
  • java-client: 7.3.0/8.0.0

Details

removed these apps before each trial

  • io.appium.settings
  • io.appium.uiautomator2.server
  • io.appium.uiautomator2.server.test

ps: using io.appium.settings installed by appium 2.0 with appium 1.22.2 will also fail the wifi action

Link to Appium logs

appium/adb logs for 2.0 and 1.22.2: https://gist.github.com/e74a6f025a5e5ca566b77207c7e52cc8.git

timestamp of turn off wifi: (appium log in US/Pacific, but looks like timestamp is incorrect)

  • 2.0: adb logcat > UTC+8, 05-12 18:09:42 - 05-12 18:09:43
  • 1.22.2: adb logcat > UTC+8, 05-13 12:15:55 - 05-13 12:15:56

Code To Reproduce Issue

((AndroidDriver) driver).setConnection(new ConnectionStateBuilder().withWiFiDisabled().build());

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:36 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, May 20, 2022

https://github.com/appium/appium/issues/16967 is for the activateApp behavior thing.

0reactions
mykola-mokhnachcommented, May 24, 2022

All patches were merged, thus closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to turn on or off Wi Fi using Appium? - Issues/Bugs
How to turn on or off wifi or data connection using appium? If any one know it please share code.
Read more >
appium/appium - Gitter
Hi all ! We have issue in GitHub action macos-12 to perform appium testing. The appium server running is 2.0.0-beta.46. This is the...
Read more >
appium/CHANGELOG.md - UNPKG
The CDN for appium. ... 243, * Make sure execution does not fail when trying to shut down simulators that ... 923, -...
Read more >
Getting started with Appium 2.0 - SlideShare
Slides used in workshop on "Getting started with Appium 2.0" at AppiumConf 2021 ...
Read more >
ThucydidesSystemProperty (serenity-model 2.0.22 API)
Unique device identifier of the connected physical device used for appium tests ... Disable flash on Internet Explorer on BrowserStack. BROWSERSTACK_LOCAL.
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