简体   繁体   中英

selenium automation test script for android “toggle button”

Can anyone please help me in writing selenium automation test script for android toggle button (eg: bluetooth, Wifi ON\\OFF). I am using Appium.

You can use NetworkConnectionSetting class. Read here:

http://appium.github.io/java-client/index.html?io/appium/java_client/NetworkConnectionSetting.html

So f you have to turn wifi off just simply turn its boolean value to false.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM