Skip to content

Commit

Permalink
Browserstack credentials (#192)
Browse files Browse the repository at this point in the history
Browserstack credentials in capabilities
  • Loading branch information
BeyondEvil committed Sep 17, 2018
1 parent 64dd9fc commit cdd1b07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytest_selenium/drivers/browserstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def auth(self):

@property
def executor(self):
return "http://{0}:{1}@hub.browserstack.com:80/wd/hub".format(
self.username, self.key
)
return "https://hub.browserstack.com/wd/hub"

@property
def username(self):
Expand Down Expand Up @@ -80,6 +78,8 @@ def pytest_selenium_runtest_makereport(item, report, summary, extra):
def driver_kwargs(request, test, capabilities, **kwargs):
provider = BrowserStack()
capabilities.setdefault("name", test)
capabilities.setdefault("browserstack.user", provider.username)
capabilities.setdefault("browserstack.key", provider.key)
kwargs = {
"command_executor": provider.executor,
"desired_capabilities": capabilities,
Expand Down

0 comments on commit cdd1b07

Please sign in to comment.