Skip to content

Commit 1729774

Browse files
authored
Testingbot credentials (#191)
Move credentials to capabilities
1 parent 497a723 commit 1729774

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pytest_selenium/drivers/testingbot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pytest_selenium.drivers.cloud import Provider
1111

1212
HOST = "hub.testingbot.com"
13-
PORT = 80
13+
PORT = 443
1414

1515

1616
class TestingBot(Provider):
@@ -29,7 +29,7 @@ def auth(self):
2929

3030
@property
3131
def executor(self):
32-
return "http://{0.key}:{0.secret}@{0.host}:{0.port}/wd/hub".format(self)
32+
return "https://{0.host}:{0.port}/wd/hub".format(self)
3333

3434
@property
3535
def key(self):
@@ -84,6 +84,8 @@ def driver_kwargs(request, test, capabilities, host, port, **kwargs):
8484
provider = TestingBot(host, port)
8585
keywords = request.node.keywords
8686
capabilities.setdefault("name", test)
87+
capabilities.setdefault("client_key", provider.key)
88+
capabilities.setdefault("client_secret", provider.secret)
8789
markers = [m for m in keywords.keys() if isinstance(keywords[m], MarkInfo)]
8890
groups = capabilities.get("groups", []) + markers
8991
if groups:

0 commit comments

Comments
 (0)