Skip to content

Commit 1551550

Browse files
committed
Fix Grid node shell command to connect to correct Grid Hub
1 parent 97fa148 commit 1551550

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

integrations/selenium_grid/grid_node.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,19 @@ def main():
7676
if grid_hub_command == "start" or grid_hub_command == "restart":
7777
shell_command = (
7878
"""java -jar %s/selenium-server-standalone.jar -role node """
79-
"""-hub http://127.0.0.1:4444/grid/register -browser browser"""
79+
"""-hub http://%s:4444/grid/register -browser browser"""
8080
"""Name=chrome,maxInstances=5,version=ANY,seleniumProtocol="""
8181
"""WebDriver -browser browserName=firefox,maxInstances=5,"""
8282
"""version=ANY,seleniumProtocol=WebDriver -browser browser"""
8383
"""Name=MicrosoftEdge,maxInstances=1,version=ANY,"""
84-
"""platform=WIN10,seleniumProtocol=WebDriver""" % dir_path)
84+
"""platform=WIN10,seleniumProtocol=WebDriver"""
85+
% (dir_path, server_ip))
8586
print("\nStarting Selenium-WebDriver Grid node...\n")
8687
print(shell_command)
8788
print("")
89+
print("""Browser Sessions: http://127.0.0.1:5555"""
90+
"""/wd/hub/static/resource/hub.html""")
91+
print("")
8892
subprocess.check_call(shell_command, shell=True)
8993
elif grid_hub_command == "stop":
9094
print("")

0 commit comments

Comments
 (0)