Kaydet (Commit) 92654aaf authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: add method to get first component

Note that this method should be improved to allow selecting a specific
component. However for now this works will all tests that start only one
document.

Change-Id: Iaba47b3dc5996abbfc3fca54dfefa48df5a603d8
üst 8c286ace
......@@ -41,6 +41,13 @@ class UITest(object):
frames = desktop.getFrames()
return frames
def get_component(self):
desktop = self.get_desktop()
components = desktop.getComponents()
for component in components:
if component is not None:
return component
def load_file(self, url):
desktop = self.get_desktop()
with EventListener(self._xContext, "OnLoad") as event:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment