Can Selenium Grid 2 Node Json config file point to multiple hubs / servers?

I was wondering if there is a way to register one Selenium Grid 2 Node for multiple hubs using a json config file for that.

I thought something like this:

{
"capabilities":
    [
            {
                    "browserName":"firefox",
                    "maxInstances":5,
                    "platform":"LINUX"
            },
            {
                    "browserName":"chrome",
                    "maxInstances":5,
                    "platform":"LINUX"
            }
    ],
"configuration":
    {
            "cleanUpCycle":2000,
            "timeout":30000,
            "maxSession":5,
            "url_hub_1":"http://10.254.254.40:4444/wd/hub",
            "url_hub_2":"http://10.254.254.40:4444/wd/hub",
            "url_hub_3":"http://10.254.254.40:4444/wd/hub",
            "url_hub_4":"http://10.254.254.40:4444/wd/hub",

    }
}

      

Any help on this would be really appreciated. Hello!

+3


source to share





All Articles