Esempio n. 1
0
 def setUp(self):
     self.driver = webdriver.PhantomJS(
         service_args=['--webdriver-loglevel=DEBUG'])
     self.driver.set_window_size(1400, 1000)
     self.driver.implicitly_wait(2)
     if not os.environ.get('BIRDSEYE_SERVER_RUNNING'):
         Thread(target=lambda: app.run(port=7777)).start()
Esempio n. 2
0
 def setUp(self):
     chrome_options = Options()
     chrome_options.add_argument("--headless")
     chrome_options.add_argument("--no-sandbox")
     self.driver = webdriver.Chrome(options=chrome_options)
     self.driver.set_window_size(1400, 1000)
     self.driver.implicitly_wait(2)
     if not os.environ.get('BIRDSEYE_SERVER_RUNNING'):
         Thread(target=lambda: app.run(port=7777)).start()