Ejemplo n.º 1
0
 def __init__(self, target):
     self.application = WinApplication(backend="win32").start(target)
     self.main_window = self.application.window(title="Free Address Book")
     # Wait until the window is visible (opened)
     self.main_window.wait("visible")
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 2
0
 def __init__(self, target):
     self.application = WinApplication(backend="win32").start(target)
     # search main window
     self.main_window = self.application.window(title="Free Address Book")
     # wait
     self.main_window.wait("visible")
     self.groups = GroupHelper(self)
Ejemplo n.º 3
0
 def __init__(self, target):
     self.application = WinApplication(backend="win32").start(
         target)  # win32 - это какая технология используется
     self.main_window = self.application.window(
         title="Free Address Book")  # открытие окна
     self.main_window.wait("visible")  # дождаться появления окна
     self.groups = GroupHelper(self)
Ejemplo n.º 4
0
 def __init__(self, target):
     #конструктор для инициализации тестируемого приложения target - путь к нему
     self.application = WinApplication(backend="win32").start(target)
     #вызвали конструктор импортируемого класса с параметром для вызова и старт с путем к исполяемому файлу
     self.main_window = self.application.window(title="Free Address Book")
     #сохранили метод с вызовом окна
     self.main_window.wait("visible")
     #ожидание видимости окна
     self.groups = GroupHelper(self)
 def __init__(self, target):
     self.application = WinApplication(backend="win32").start(target)
     self.main_window = self.application.window(title="Free Address Book")
     self.groups = GroupHelper(self)
Ejemplo n.º 6
0
 def __init__(self, target):
     self.application = WinApplication().start(target)
     self.main_window = self.application.window(title="Free Address Book")
     self.main_window.wait("visible")
Ejemplo n.º 7
0
 def __init__(self, target):
     self.application = WinApplication(backend='win32').start(target)
     self.main_window = self.application.window(title='Free Address Book')
     self.main_window.wait('visible')
     self.groups = GroupHelper(self)
Ejemplo n.º 8
0
 def __init__(self, target):
     self.application = WinApplication(backend="win32").start(target)
     self.main_window = self.application.window("Free Address Book")
     self.main_window.wait("visible")
Ejemplo n.º 9
0
 def __init__(self, target, testdata):
     self.application = WinApplication(backend="win32").start(target)
     self.main_window = self.application.window(title="Free Address Book")
     self.main_window.wait("visible")
     self.group = GroupHelper(self)
     self.testdata = testdata