Skip to content

Commit cdd1b07

Browse files
authored
Browserstack credentials (#192)
Browserstack credentials in capabilities
1 parent 64dd9fc commit cdd1b07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytest_selenium/drivers/browserstack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ def auth(self):
1818

1919
@property
2020
def executor(self):
21-
return "http://{0}:{1}@hub.browserstack.com:80/wd/hub".format(
22-
self.username, self.key
23-
)
21+
return "https://hub.browserstack.com/wd/hub"
2422

2523
@property
2624
def username(self):
@@ -80,6 +78,8 @@ def pytest_selenium_runtest_makereport(item, report, summary, extra):
8078
def driver_kwargs(request, test, capabilities, **kwargs):
8179
provider = BrowserStack()
8280
capabilities.setdefault("name", test)
81+
capabilities.setdefault("browserstack.user", provider.username)
82+
capabilities.setdefault("browserstack.key", provider.key)
8383
kwargs = {
8484
"command_executor": provider.executor,
8585
"desired_capabilities": capabilities,

0 commit comments

Comments
 (0)