How to switch ON/OFF settings using appium


There are situations where we need to toggle any settings to ON/OFF, e.g –  switch ON/OFF wifi.

We can automate the toggle or switch ON/OFF using appium,


How we do manually – either click on the switch (on right side icon, as shown) or click on the text to switch ON/OFF.

If the color turns to green – then switch is ON

if color is grayed out, then switch is OFF

let’s see the implementation

Short link –

Content posted is based on learning or working experience,
Share the post with others if find useful,
Any queries?, leave comments or discuss on our, Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *