Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. from unittest import TestCase
  2. from selenium import webdriver
  3.  
  4.  
  5. class BaseTest(TestCase):
  6.     time_out = 5
  7.  
  8.     def setUp(self):
  9.         # create a new Chrome session
  10.         self.driver = webdriver.Chrome()
  11.         self.driver.implicitly_wait(self.time_out)
  12.         self.driver.maximize_window()
  13.  
  14.         # navigate to the application home page
  15.         self.driver.get('http://demo.fluxday.io')
  16.  
  17.     def tearDown(self):
  18.         # close the browser window
  19.         self.driver.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement