Can we disable /enable wifi through ranorex

Ask general questions here.
Geethac
Posts: 7
Joined: Thu Jul 23, 2020 4:55 pm

Can we disable /enable wifi through ranorex

Post by Geethac » Tue Nov 10, 2020 10:55 am

Hi Team,

Is it possible to disable/enable the wifi in android /Ios device using ranorex.




Thanks,
Geetha C

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6360
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Can we disable /enable wifi through ranorex

Post by odklizec » Tue Nov 10, 2020 11:15 am

Hi,

I'm quite sure, that the this is not possible with iOS, because of Apple's strict security policies. You may have a better luck on Android, with enabled Android OS Automation option (Ranorex Settings >> Plugins tab >> Mobile section). But even with this option, it won't be easy task because you will have to manually find the appropriate UI elements via spy (tracking is not possible for system apps). You may eventually need to use adb commands to achieve what you want. I believe there is an adb command to turn the wifi off and on?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration