Skip to content

Commit

Permalink
Added desired capabilities for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaenztagarro committed Nov 6, 2014
1 parent 73be3e0 commit 786a80d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cirujanos/tests/support/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ def browser_profile(cls):

@classmethod
def setUpClass(cls):
cls.caps = webdriver.DesiredCapabilities.FIREFOX
cls.caps['tunnel-identifier'] = os.environ['TRAVIS_JOB_NUMBER']
cls.caps['build'] = os.environ['TRAVIS_BUILD_NUMBER']
cls.caps['tags'] = [os.environ['TRAVIS_PYTHON_VERSION'], 'CI']

cls.driver = webdriver.Remote(
command_executor=settings.SELENIUM_COMMAND_EXECUTOR,
desired_capabilities=webdriver.DesiredCapabilities.FIREFOX,
desired_capabilities=cls.caps,
browser_profile=cls.browser_profile(),
)
cls.driver.implicitly_wait(20)
Expand Down

0 comments on commit 786a80d

Please sign in to comment.