Exemple #1
0
    def setUp(self):

        # Launch Selenium using options specified as class
        # variables, which can include driver_name and
        # desired_capabilities
        if hasattr(self, 'driver_opts'):
            self.driver = util.launch_driver(**self.driver_opts)
        else:
            self.driver = util.launch_driver()

        self.site_root = config.osf_home.strip('/')
Exemple #2
0
    def setUp(self):
        
        # Launch Selenium using options specified as class
        # variables, which can include driver_name and
        # desired_capabilities
        if hasattr(self, 'driver_opts'):
            self.driver = util.launch_driver(**self.driver_opts)
        else:
            self.driver = util.launch_driver()

        self.site_root = config.osf_home.strip('/')
 def setUpClass(cls):
     
     # Launch Selenium
     cls.driver = util.launch_driver()
     
     # Generate user data
     cls.user_data = util.gen_user_data()
    def setUpClass(cls):

        # Launch Selenium
        cls.driver = util.launch_driver()

        # Create test account
        cls.user_data = util.create_user(cls.driver)

        # Login to test account
        util.login(cls.driver, cls.user_data['username'],
                   cls.user_data['password'])
 def setUpClass(cls):
     
     cls.driver = util.launch_driver()
     
     # Create user account and login
     cls.user_data = util.create_user(cls.driver)
     util.login(
         cls.driver,
         cls.user_data['username'],
         cls.user_data['password']
     )
 def setUpClass(cls):
     
     # Start WebDriver
     cls.driver = util.launch_driver()
     
     # Create test user
     cls.user_data = util.create_user(cls.driver)
     
     # Login to test account
     util.login(
         cls.driver,
         cls.user_data['username'],
         cls.user_data['password']
     )
    def setUp(self):
        
        # Start WebDriver
        self.driver = util.launch_driver()

        # Create test user
        self.user_data = util.create_user(self.driver)
        
        # Login to test account
        util.login(
            self.driver,
            self.user_data['username'],
            self.user_data['password']
        )

        # Create project and store URL
        self.url = util.create_project(self.driver)
Exemple #8
0
 def _make_driver(self):
     return launch_driver()
Exemple #9
0
 def _make_driver(self):
     return launch_driver()