[Hildon-test-aut-commits] r611 - trunk/dogtail/dogtail
suanand at garage.maemo.org
suanand at garage.maemo.org
Fri Nov 23 12:00:15 EET 2007
Author: suanand
Date: 2007-11-23 12:00:14 +0200 (Fri, 23 Nov 2007)
New Revision: 611
Modified:
trunk/dogtail/dogtail/rocknrole.py
trunk/dogtail/dogtail/rocknroleSyntax.txt
Log:
syntax updated and comment in kidsearch
Modified: trunk/dogtail/dogtail/rocknrole.py
===================================================================
--- trunk/dogtail/dogtail/rocknrole.py 2007-11-22 17:56:18 UTC (rev 610)
+++ trunk/dogtail/dogtail/rocknrole.py 2007-11-23 10:00:14 UTC (rev 611)
@@ -73,7 +73,7 @@
def kidsearch(node):
"""Basic recursive function which collapses given tree, slightly faster than original way.
- Also fixes few problems with dogtails findChildren being unable to find anything if the class is wrapped.
+ May need to revisit this with pyatspi.
"""
try:
children = []
@@ -96,7 +96,7 @@
self.__dict__.pop(i)
kidsearch(self.node)
- except TypeError: raise AssertionError, "Error in finding childs"
+ except TypeError: raise AssertionError, "Error in finding children"
def __getattrresolver(self, attr, *args):
Modified: trunk/dogtail/dogtail/rocknroleSyntax.txt
===================================================================
--- trunk/dogtail/dogtail/rocknroleSyntax.txt 2007-11-22 17:56:18 UTC (rev 610)
+++ trunk/dogtail/dogtail/rocknroleSyntax.txt 2007-11-23 10:00:14 UTC (rev 611)
@@ -51,5 +51,5 @@
a.WaitFor12tablecellRawClick('AF95') # wait for atleast 12 seconds, then rawclick on tablecell 'AF95', returns corresponding dogtail node.
a.WaitFordialog('Phone') # wait for atleast 9 seconds, returns RNR object of dialog.
-checkState(a, 'pressed') - checks if a is in pressed state.
-checkState(a, 'pressed', 'focussed') - checks if a is in pressed and focussed state. Even if one state check fails the function signals a failure.
+checkState(a, {'states':'pressed') - checks if a is in pressed state.
+checkState(a, {'states': ('pressed', 'focussed'), 'notstates' : ('checked', 'selected')}) - checks if a is in pressed and focussed state, and also it is not in checked and selected states. Even if one state check fails the function signals a failure.
More information about the Hildon-test-aut-commits
mailing list