Acknowledged, it is indeed achievable. The key is to utilize 2 separate web-driver scripts for launching 2 distinct URLs on node ports within the confines of selenium grid
.
Execute these directives on the designated machine that will function as a node with varying port assignments.
java -jar selenium-server-standalone-2.45.0.jar -host localhost -port 5555 -role webdriver -hub http://localhost:4444/grid/register -browser browserName=firefox,maxInstances=5,platform=WINDOWS
If there's a requirement for running 2 scripts concurrently, initiate two commands with differing port values such as (5555 and 5556).
Moreover, implement distinct port specifications in each respective web-driver script;
def setUp(self):
self.browser = webdriver.Remote(command_executor='http://localhost:4444/wd/hub', desired_capabilities = {"browserName": 'firefox', "node": '5555'})