In Python Selenium, which URL format correctly specifies the Selenium Grid Hub endpoint when creating a Remote WebDriver?
easy📝 Syntax Q3 of 15
Selenium Python - Selenium Grid
In Python Selenium, which URL format correctly specifies the Selenium Grid Hub endpoint when creating a Remote WebDriver?
A'http://127.0.0.1:5555/remote'
B'http://localhost:4444/driver'
C'http://localhost:4444/wd/hub'
D'https://localhost:4444/wd/hub'
Step-by-Step Solution
Solution:
Step 1: Recall the default Selenium Grid Hub URL
The standard endpoint for the Grid Hub is 'http://:/wd/hub'.
Step 2: Verify the options
'http://localhost:4444/wd/hub' matches the correct format with default port 4444 and path '/wd/hub'. 'https://localhost:4444/wd/hub' uses HTTPS which is not default.
Final Answer:
'http://localhost:4444/wd/hub' -> Option C
Quick Check:
Grid Hub URL ends with '/wd/hub' and uses HTTP by default. [OK]
Quick Trick:Grid Hub URL ends with /wd/hub [OK]
Common Mistakes:
Using incorrect port or path
Using HTTPS instead of HTTP without configuration
Confusing node URL with hub URL
Master "Selenium Grid" in Selenium Python
9 interactive learning modes - each teaches the same concept differently