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)
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)
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)
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)
def __init__(self, target): self.application = WinApplication().start(target) self.main_window = self.application.window(title="Free Address Book") self.main_window.wait("visible")
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)
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")
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