def help_points(name):
return g_points[name]
+#---------------------------------------------------------------------------------------------
+# Tools
+def findMenuItem(menuObject, item):
+ for child in object.children(menuObject):
+ if child.text == item:
+ return child
+ return None
+
+#---------------------------------------------------------------------------------------------
def set_defaults():
waitForObject(":SALOME*_STD_TabDesktop").resize(1024, 768)
for element in allPartSetElements:
test.compare(ENABLE_COLOR, waitForObjectItem(":Object browser_XGUI_DataTree", element).foregroundColor, "%s is enabled after: %s" % (element, scenario))
-def findMenuItem(menuObject, item):
- for child in object.children(menuObject):
- if child.text == item:
- return child
- return None
-
def main():
source(findFile("scripts", "common.py"))