Skip to content

Commit 4e102f6

Browse files
committed
[py] Making path to selenium server independent of the current working dir
1 parent fbaf35f commit 4e102f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ def server(request):
189189

190190
_host = 'localhost'
191191
_port = 4444
192-
_path = '../bazel-bin/java/server/src/org/openqa/selenium/grid/selenium_server_deploy.jar'
192+
_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
193+
'bazel-bin/java/server/src/org/openqa/selenium/grid/selenium_server_deploy.jar')
193194

194195
def wait_for_server(url, timeout):
195196
start = time.time()

0 commit comments

Comments
 (0)