def __init__(self):
     self.wd = webdriver.Chrome()
     self.wd.implicitly_wait(5)
     self.session = SessionHelper(
         self
     )  # connection with class from session.py, with parameter self( for using self.wd(webdriver(__init__)) )
     self.group = GroupHelper(self)
Ejemplo n.º 2
0
 def __init__(self):
     self.wb = webdriver.Chrome()
     self.wb.maximize_window()
     self.wb.implicitly_wait(5)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 3
0
 def __init__(self):
     self.wd = webdriver.Firefox()
     self.wd.implicitly_wait(30)
     self.session = SessionHelper(self)
     self.menu = MenuHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 4
0
 def __init__(self):
     self.wd = webdriver.Chrome()
     self.wd.implicitly_wait(5)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
     self.wd.get("http://localhost/addressbook/")
Ejemplo n.º 5
0
 def __init__(self):
     self.wd = WebDriver()
     self.wd.implicitly_wait(60)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
     self.navigation = NavigationHelper(self)
Ejemplo n.º 6
0
 def __init__(self):
     self.wd = WebDriver(
         firefox_binary="C:/Program Files/Mozilla Firefox/firefox.exe")
     self.wd.implicitly_wait(5)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 7
0
 def __init__(self):
     # self.wd = webdriver.Chrome(ChromeDriverManager().install())
     self.wd = webdriver.Chrome()
     # self.wd.implicitly_wait(5)
     self.session = SessionHelper(self)
     self.gpoup = GroupHelper(self)
     self.contact = ContactHelper(self)
 def __init__(self):
     self.wd = webdriver.Chrome(
         executable_path="C:/selenium_chromedriver_win32/chromedriver.exe")
     self.wd.maximize_window()
     # self.wd.implicitly_wait(5)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
Ejemplo n.º 9
0
 def __init__(self):
     # self.driver = WebDriver()
     self.driver = Driver()
     # self.driver.implicitly_wait(60)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.entry = EntryHelper(self)
Ejemplo n.º 10
0
 def __init__(self):
     self.wd = webdriver.Chrome()
     self.wd.implicitly_wait(5)
     self.session = Session(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
     self.conftest = Conftest(self)
Ejemplo n.º 11
0
    def __init__(self, browser="firefox", url="http://localhost/addressbook/"):

        capabilities = {
            "browserName": "chrome",
            #            "version": "73.0",
            #            "enableVNC": True,
            #            "enableVideo": False
        }

        driver = webdriver.Remote(
            command_executor="http://192.168.88.77:4444/wd/hub",
            desired_capabilities=capabilities)
        self.app_url = url
        # if browser == "firefox":
        #     self.wd = webdriver.Firefox()
        # elif browser == "chrome":
        #     self.wd = webdriver.Chrome()
        # elif browser == "ie":
        #     self.wd = webdriver.ie
        # else:
        #     raise ValueError("Unrecognised browser option %s" % browser)
        self.wd = driver
        self.session = SessionHelper(self)
        self.contact = ContactHelper(self)
        self.group = GroupHelper(self)
        self.contact_group_relation = ContactGroupRelationHelper(self)
        self.ge = GenericElementsHelper(self)
Ejemplo n.º 12
0
 def __init__(self):
     self.wd = WebDriver(capabilities={"marionette": False})
     self.wd.implicitly_wait(60)
     self.navigation = NavigationHelper(self)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 13
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.º 14
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.º 15
0
 def __init__(self):
     self.wd = WebDriver(
         capabilities={"marionette": False},
         firefox_binary="C:/Program Files/Mozilla Firefox/firefox.exe")
     self.wd.implicitly_wait(5)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
Ejemplo n.º 16
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.º 17
0
 def __init__(self):
     binary = FirefoxBinary(r'C:\Program Files (x86)\Mozilla Firefox\firefox.exe')
     self.wd = webdriver.Firefox(executable_path=r'E:\GitHub_trainign\geckodriver-v0.21.0-win64\geckodriver.exe',
                                 firefox_binary=binary)
     self.wd.implicitly_wait(60)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
Ejemplo n.º 18
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.º 19
0
 def __init__(self):
     self.wd = webdriver.Firefox()
     self.wd.maximize_window()
     self.wd.implicitly_wait(10)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 20
0
 def __init__(self):
     #self.wd = webdriver.Firefox()
     self.wd = webdriver.Chrome(
         executable_path="/usr/local/bin/chromedriver")
     self.wd.implicitly_wait(30)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 21
0
 def __init__(self):
     #self.wd = WebDriver()
     self.wd = webdriver.Firefox()
     #Unit3_06 строка ниже полезна больше для динамических страниц, время на догрузку
     #self.wd.implicitly_wait(60)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 22
0
 def __init__(self):
     self.driver = webdriver.Firefox()
     self.driver.implicitly_wait(30)
     #        self.base_url = "https://www.google.com/"
     #        self.verificationErrors = []
     #        self.accept_next_alert = True
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
Ejemplo n.º 23
0
 def __init__(self):
     self.wd = webdriver.Chrome(
         executable_path=
         'D:\\Coding\\PyLerning\\venv\\chromedriver\\chromedriver.exe')
     self.wd.implicitly_wait(5)
     # при конструированни драйвера передаем ссылку на фикстуру
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
Ejemplo n.º 24
0
 def __init__(self):
     self.wd = webdriver.Firefox(
         executable_path="C:\\webdrivers\\geckodriver.exe")
     self.wd.implicitly_wait(60)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
     self.open_home_page()
Ejemplo n.º 25
0
 def __init__(self):
     self.driver = self.driver = webdriver.Chrome(
         executable_path=r'C:\pselenium\chromedriver_win32\chromedriver.exe'
     )
     #webdriver.Firefox(executable_path=r'C:\pselenium\geckodriver-v0.19.1-win64\geckodriver.exe')
     self.driver.implicitly_wait(5)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 26
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)
Ejemplo n.º 27
0
 def __init__(self):
     profile = FirefoxProfile()
     profile.set_preference("browser.startup.homepage_override.mstone",
                            "ignore")
     self.wd = WebDriver(firefox_profile=profile)
     #self.wd = WebDriver()
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
Ejemplo n.º 28
0
 def __init__(self):
     self.driver = webdriver.Chrome()
     # self.driver.set_window_position(0, -1000)#open browser in window position with a given value
     self.driver.maximize_window()  #open browser on the fullscreen
     self.driver.implicitly_wait(
         1)  #the driver should wait when searching for an element
     self.session = Session(self)  #create instance of the class Session
     self.group = GroupHelper(self)  #create instance of the class Group
     self.contact = ContactHelper(
         self)  #create instance of the class Contact
Ejemplo n.º 29
0
 def __init__(self, browser, base_url):
     if browser == "firefox":
         self.wd = webdriver.Firefox()
     elif browser == "chrome":
         self.wd = webdriver.Chrome(ChromeDriverManager().install())
     else:
         raise ValueError("Unrecognized browser %s" % browser)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
     self.base_url = base_url
 def __init__(self, browser, base_url):
     if browser == "ie":
         self.wd = webdriver.Ie()
     else:
         self.wd = webdriver.Chrome()
         self.wd.set_window_size(1920, 1080)
     self.wd.implicitly_wait(5)
     self.session = SessionHelper(self)
     self.group = GroupHelper(self)
     self.contact = ContactHelper(self)
     self.base_url = base_url