Created
September 18, 2013 15:45
-
-
Save mrchilds/6611165 to your computer and use it in GitHub Desktop.
Example setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setUp(self): | |
if 'remote_saucelabs' in os.environ: | |
desired_capabilities = [] | |
##--tc=name:Dev-run --tc=browser:firefox | |
browser = copy.copy(webdriver.DesiredCapabilities.FIREFOX) | |
browser['name'] = config['name'] | |
desired_capabilities += [browser] | |
self.driver = webdriver.Remote( | |
desired_capabilities=desired_capabilities, | |
command_executor="http://username-string:[email protected]:80/wd/hub" | |
) | |
self.driver.implicitly_wait(240) | |
else: | |
self.driver = webdriver.Chrome() | |
self.driver.get(settings.address) | |
self.driver.implicitly_wait(240) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment