diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-21 01:21:08 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:31 +0200 |
commit | 229ab4ba12c3bf4ff535c150a9d2ef4ba29cfd57 (patch) | |
tree | bb004f6108315f3e6f0ccd0d5cbf842faf56afd3 /uitest | |
parent | cb024cd4e9749ef4ad5a1bc19570623883da1d3b (diff) |
uitest: make handling the state of an object easier
Change-Id: I3dcb78752b62a42d3aa283910241fef813dc352b
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/uitest_helper.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uitest/uitest_helper.py b/uitest/uitest_helper.py index cac4ea127165..925010e7b19e 100644 --- a/uitest/uitest_helper.py +++ b/uitest/uitest_helper.py @@ -9,6 +9,8 @@ import time from helper import EventListener +from helper import convert_property_values_to_dict + class DialogNotExecutedException(Exception): def __init__(self, command): self.command = command @@ -82,4 +84,7 @@ class UITest(object): time_ += self.DEFAULT_SLEEP time.sleep(self.DEFAULT_SLEEP) +def get_state_as_dict(ui_object): + return convert_property_values_to_dict(ui_object.getState()) + # vim:set shiftwidth=4 softtabstop=4 expandtab: */ |