Skip to content

Commit

Permalink
gallery-select-album.py: exits if API != 15
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmilano committed Apr 2, 2013
1 parent 798fc84 commit c51317b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AndroidViewClient/examples/gallery-select-album.py
Expand Up @@ -39,8 +39,9 @@
vc = ViewClient(device, serialno) vc = ViewClient(device, serialno)
if vc.build[VERSION_SDK_PROPERTY] != 15: if vc.build[VERSION_SDK_PROPERTY] != 15:
print 'This script is intended to run on API-15' print 'This script is intended to run on API-15'
sys.exit(1)
ALL_PICTURES = 'All pictures' ALL_PICTURES = 'All pictures'
vc.findViewWithTextOrRaise(re.compile('%s \(\d+\)' % ALL_PICTURES)).touch() vc.findViewWithTextOrRaise(re.compile('%s \(\d+\)' % ALL_PICTURES)).touch()
vc.dump() vc.dump()
vc.findViewWithTextOrRaise(ALL_PICTURES) vc.findViewWithTextOrRaise(ALL_PICTURES)
print "'%s' found" % ALL_PICTURES print "'%s' found" % ALL_PICTURES

0 comments on commit c51317b

Please sign in to comment.