Skip to content

Commit b9ee54c

Browse files
committed
enable changing of url relative to selenium
1 parent 66c8451 commit b9ee54c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dash/testing/application_runners.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class BaseDashRunner(object):
5252
"""Base context manager class for running applications."""
5353

5454
def __init__(self, keep_open, stop_timeout):
55+
self.scheme = 'http'
56+
self.host = 'localhost'
5557
self.port = 8050
5658
self.started = None
5759
self.keep_open = keep_open
@@ -92,7 +94,7 @@ def __exit__(self, exc_type, exc_val, traceback):
9294
@property
9395
def url(self):
9496
"""The default server url."""
95-
return "http://localhost:{}".format(self.port)
97+
return "{}://{}:{}".format(self.scheme, self.host, self.port)
9698

9799
@property
98100
def is_windows(self):

0 commit comments

Comments
 (0)