1
class MainWindow(object):
2
"""An emulator class that makes it easy to interact with the camera-app."""
4
def __init__(self, app):
7
def get_qml_view(self):
8
"""Get the main QML view"""
9
return self.app.select_single("QQuickView")
11
def get_address_bar(self):
12
"""Get the browsers address bar"""
13
return self.app.select_single("TextField", objectName="addressBar")
15
def get_address_bar_clear_button(self):
16
return self.get_address_bar().get_children_by_type("AbstractButton")[0]
18
def get_web_view(self):
19
return self.app.select_single("QQuickWebView")