Beispiel #1
0
    def setUp(self):
        self.vars = {}

        timeout = 3.5
        self.driver = None
        options = webdriver.FirefoxOptions()
        self.driver = webdriver.Remote(
            command_executor=
            'http://*****:*****@remote_web_driver_host:port/wd/hub',
            desired_capabilities={
                'app': '',
                'browserName': 'firefox',
                'deviceName': '',
                'javascriptEnabled': 'True',
                'platformName': 'linux',
                'platformVersion': '',
                'seleniumVersion': '',
                'version': '54.0'
            },
            options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(timeout=timeout,
                                       func_mode=False,
                                       driver=self.driver,
                                       windows={},
                                       scenario_name='loc_sc_remote')
Beispiel #2
0
    def setUp(self):
        self.vars = {}

        timeout = 30.0
        options = webdriver.ChromeOptions()
        options.add_argument('--no-sandbox')
        options.add_argument('--disable-dev-shm-usage')
        options.add_argument('--disable-gpu')
        options.set_capability('unhandledPromptBehavior', 'ignore')
        options.ignore_local_proxy_environment_variables()
        options.add_argument('one')
        options.add_argument('two')
        options.add_experimental_option('key1', 'value1')
        options.add_experimental_option('key2', {'key22': 'value22'})
        options.set_capability('browserName', 'chrome')
        options.set_capability('cap1', 'val1')
        options.set_capability('cap2', 'val2')
        self.driver = webdriver.Remote(
            command_executor=
            'http://*****:*****@remote_web_driver_host:port/wd/hub',
            options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(timeout=timeout,
                                       func_mode=False,
                                       driver=self.driver,
                                       windows={},
                                       scenario_name='loc_sc_remote')
    def setUp(self):
        self.driver = None
        options = webdriver.ChromeOptions()
        self.driver = webdriver.Chrome(service_log_path='<somewhere>webdriver.log', chrome_options=options)
        self.driver.implicitly_wait(3.5)
        self.vars = {

        }
        add_flow_markers()
        apiritif.put_into_thread_store(driver=self.driver, func_mode=False)
Beispiel #4
0
 def setUp(self):
     self.driver = None
     options = webdriver.ChromeOptions()
     options.add_argument('--no-sandbox')
     options.add_argument('--disable-dev-shm-usage')
     self.driver = webdriver.Chrome(
         service_log_path='<somewhere>webdriver.log',
         chrome_options=options)
     self.driver.implicitly_wait(3.5)
     self.loc_mng = LocatorsManager(self.driver)
     self.vars = {}
     add_flow_markers()
     apiritif.put_into_thread_store(func_mode=False, driver=self.driver)
    def setUp(self):
        self.vars = {}

        timeout = 3.5
        self.driver = None
        options = webdriver.ChromeOptions()
        options.add_argument('--no-sandbox')
        options.add_argument('--disable-dev-shm-usage')
        self.driver = webdriver.Chrome(
            service_log_path='/somewhere/webdriver.log',
            options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(driver=self.driver, scenario_name='loc_sc', timeout=timeout, func_mode=False)
Beispiel #6
0
    def setUp(self):
        self.driver = None
        timeout = 60.0
        options = webdriver.ChromeOptions()
        self.driver = webdriver.Chrome(service_log_path='webdriver.log',
                                       chrome_options=options)
        self.driver.implicitly_wait(timeout)

        self.vars = {}

        add_flow_markers()

        apiritif.put_into_thread_store(
            driver=self.driver, timeout=timeout,
            func_mode=False)  # don't stop after failed test case
    def setUp(self):
        self.vars = {}

        timeout = 30.0
        options = webdriver.FirefoxOptions()
        options.add_argument('one')
        options.add_argument('two')
        options.set_preference('key1', 'value1')
        options.set_preference('key2', {'key22': 'value22'})
        self.driver = webdriver.Remote(command_executor='http://*****:*****@remote_web_driver_host:port/wd/hub',
                                       desired_capabilities={'browserName': 'firefox', 'cap1': 'val1', 'cap2': 'val2'},
                                       options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(timeout=timeout, func_mode=False, driver=self.driver, windows={},
                                       scenario_name='loc_sc_remote')
Beispiel #8
0
    def setUp(self):
        self.vars = {}

        timeout = 3.5
        self.driver = None
        options = webdriver.ChromeOptions()
        options.add_argument('--no-sandbox')
        options.add_argument('--disable-dev-shm-usage')
        options.add_argument('--disable-gpu')
        options.set_capability('unhandledPromptBehavior', 'ignore')
        self.driver = webdriver.Chrome(
            service_log_path='/somewhere/webdriver.log',
            options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(timeout=timeout, func_mode=False, driver=self.driver, windows={},
                                       scenario_name='loc_sc')
Beispiel #9
0
 def setUp(self):
     self.driver = None
     self.driver = webdriver.Remote(
         command_executor=
         'http://*****:*****@remote_web_driver_host:port/wd/hub',
         desired_capabilities={
             'app': '',
             'browserName': 'firefox',
             'deviceName': '',
             'javascriptEnabled': 'True',
             'platformName': 'linux',
             'platformVersion': '',
             'seleniumVersion': '',
             'version': '54.0',
         })
     self.driver.implicitly_wait(3.5)
     self.vars = {}
     add_flow_markers()
     apiritif.put_into_thread_store(driver=self.driver, func_mode=False)
Beispiel #10
0
    def setUp(self):
        self.vars = {}

        timeout = 30.0
        options = webdriver.EdgeOptions()
        options.ignore_local_proxy_environment_variables()
        options.add_argument('one')
        options.add_argument('two')
        options.set_capability('browserName', 'MicrosoftEdge')
        self.driver = webdriver.Remote(
            command_executor='http://addr-of-remote-server.com',
            options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(timeout=timeout,
                                       func_mode=False,
                                       driver=self.driver,
                                       windows={},
                                       scenario_name='remote_sc')
    def setUp(self):
        self.vars = {}

        timeout = 30.0
        options = None
        self.driver = webdriver.Remote(
            command_executor=
            'http://*****:*****@remote_web_driver_host:port/wd/hub',
            desired_capabilities={
                'cap1': 'val1',
                'cap2': 'val2'
            },
            options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(timeout=timeout,
                                       func_mode=False,
                                       driver=self.driver,
                                       windows={},
                                       scenario_name='loc_sc_remote')
    def setUp(self):
        self.vars = {}

        timeout = 30.0
        options = ArgOptions()
        options.ignore_local_proxy_environment_variables()
        options.add_argument('one')
        options.add_argument('two')
        options.set_capability('cap1', 'val1')
        options.set_capability('cap2', 'val2')
        self.driver = webdriver.Remote(
            command_executor=
            'http://*****:*****@remote_web_driver_host:port/wd/hub',
            options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(timeout=timeout,
                                       func_mode=False,
                                       driver=self.driver,
                                       windows={},
                                       scenario_name='loc_sc_remote')
Beispiel #13
0
    def setUp(self):
        self.vars = {}

        timeout = 30.0
        options = webdriver.WebKitGTKOptions()
        options.add_argument('one')
        options.add_argument('two')
        self.driver = webdriver.Remote(
            command_executor=
            'http://*****:*****@remote_web_driver:port/api/v4/grid/wd/hub',
            desired_capabilities={
                'browserName': 'safari',
                'cap1': 'val1',
                'cap2': 'val2'
            },
            options=options)
        self.driver.implicitly_wait(timeout)
        add_flow_markers()
        apiritif.put_into_thread_store(timeout=timeout,
                                       func_mode=False,
                                       driver=self.driver,
                                       windows={},
                                       scenario_name='loc_sc_remote')