0

I need to change time on my AVD without stopping script.

Task:

  1. launch apk
  2. take screenshot-1
  3. shift time forward on N hours (maybe days)
  4. launch browser
  5. take screenshot-2
  6. Compare two screenshots

How to change time on emulator? can't find any examples with time shifting.

1 Answers1

0

You can use

device.shell('date -s YYYYmmdd.HHMMSS`)

if you have the right permission.

Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134