Пример #1
0
def start(num_browsers):
    global browser, translator

    print('Opening Firefox...')
    browser.start(num_browsers)
    colorama.init()
    translator = Translator()
    print('Done!')
Пример #2
0
 def setUp(self):
     self.driver = browser.start(main.get_env(), main.get_browser())
     self.nicol = profiles.Profile(self.driver, 'nicol')
     self.patrick = profiles.Profile(self.driver, 'patrick')
     self.krabs = profiles.Profile(self.driver, 'krabs')
     self.squid = profiles.Profile(self.driver, 'squid')
     self.WDWait = WebDriverWait(self.driver, 10)
Пример #3
0
 def setUp(self):
     self.driver = browser.start(main.get_env(), main.get_browser())
     self.nicol = profiles.Profile(self.driver, 'nicol')
     self.faker = profiles.Profile(self.driver, 'faker')
     self.tester = profiles.Profile(self.driver, 'tester')
     self.fire = profiles.Profile(self.driver, 'fire')
     self.WDWait = WebDriverWait(self.driver, 10)
Пример #4
0
def run():
    andrew = profiles.Profile(
        browser.start(main.get_env(), main.get_browser()), 'andrew')

    andrew.login()
    andrew.employee_page.on()

    filters = andrew.employee_page.get_filters()
Пример #5
0
 def setUp(self):
     self.driver = browser.start(main.get_env(), main.get_browser())
     self.nicol = profiles.Profile(self.driver, 'nicol')
     self.poli = profiles.Profile(self.driver)
     self.WDWait = WebDriverWait(self.driver, 10)
Пример #6
0
 def setUp(self):
     self.driver = browser.start(main.get_env(), main.get_browser())
     self.nicol = profiles.Profile(self.driver, 'nicol')
Пример #7
0
 def setUp(self):
     self.driver = browser.start(main.get_env(), main.get_browser())
     self.andrewS = profiles.Profile(self.driver, 'andrewSendmi')
Пример #8
0
 def setUp(self):
     self.driver = browser.start(main.get_env(), main.get_browser())
     self.cheeks = profiles.Profile(self.driver, 'cheeks')
     self.lili = profiles.Profile(self.driver, 'lili')
     self.nicol = profiles.Profile(self.driver, 'nicol')
Пример #9
0
 def setUp(self):
     self.driver = browser.start(main.get_env(), main.get_browser())
     self.cheeks = profiles.Profile(self.driver, 'cheeks')
     self.alone6 = profiles.Profile(self.driver, 'alone6')
Пример #10
0
def setUp(self):
    self.driver = browser.start(main.get_env(),main.get_browser())
    self.nicol = profiles.Profile(self.driver,'nicol')
    self.employee = profiles.Profile(self.driver, 'lili')
    self.assertTrue(self.nicol.env_loaded())