Can we change device date and time settings using ranorex

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

Can we change device date and time settings using ranorex

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

Hi Team,

Is it possible to change the device(Android/ios) date and time , language settings using ranorex.


Thanks ,
Geetha C

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

Re: Can we change device date and time settings using ranorex

Post by odklizec » Tue Nov 10, 2020 11:17 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).
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

Geethac
Posts: 10
Joined: Thu Jul 23, 2020 4:55 pm

Re: Can we change device date and time settings using ranorex

Post by Geethac » Tue Nov 10, 2020 12:41 pm

Thank you for the reply,

I have tried to spy the object, but i am not able to see the device objects in ranorex spy, even after enabled Android OS Automation option.

i am able to see only the ranorex browser objects .
issue.PNG
issue.PNG (4.62 KiB) Viewed 171 times
Thanks,
Geetha C

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

Re: Can we change device date and time settings using ranorex

Post by odklizec » Tue Nov 10, 2020 12:48 pm

Hi,

Well, in this case, your only hope seems to be application of ADB commands via code. Here is an example:
send-adb-commands-via-ranorex-t10596.html#p42515
For exact ADB commands to set date/time or to disable/enable wifi, use google ;)
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