Skip to content

Commit

Permalink
[py] Starting Selenium Server with Selenium Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Mar 16, 2023
1 parent a310907 commit d60cb15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ def wait_for_server(url, timeout):
)
except Exception:
print("Starting the Selenium server")
process = subprocess.Popen(["java", "-jar", _path, "standalone", "--port", "4444"])
process = subprocess.Popen(
["java", "-jar", _path, "standalone", "--port", "4444", "--selenium-manager", "true"]
)
print(f"Selenium server running as process: {process.pid}")
assert wait_for_server(url, 10), f"Timed out waiting for Selenium server at {url}"
print("Selenium server is ready")
Expand Down

0 comments on commit d60cb15

Please sign in to comment.