[py] Making path to selenium server independent of the current working dir
@@ -189,7 +189,8 @@ def server(request):
_host = 'localhost'
_port = 4444
- _path = '../bazel-bin/java/server/src/org/openqa/selenium/grid/selenium_server_deploy.jar'
+ _path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
+ 'bazel-bin/java/server/src/org/openqa/selenium/grid/selenium_server_deploy.jar')
def wait_for_server(url, timeout):
start = time.time()
