I have a hub with two kind of different Grid nodes. I am trying to set a custom-cap in IE (Edge with Internet Explorer Mode), however, when I set (ācustom-capā, false), the tests are executed on any node indistinctly.
I have trying to set different kind of prefix as well, but nothing works: (āc:custom-capā, false), (āie:custom-capā, false), (āse:custom-capā, false).
The custom capability is applied on the http://hubipadress:4444/status page:
{
"value": {
"ready": true,
"message": "Selenium Grid ready.",
"nodes": [
{
"id": "8c748cc5-a767-4392-b0d7-4abffc16aec1",
"uri": "http:\u002f\u002f.....:5555",
"maxSessions": 2,
"osInfo": {
"arch": "amd64",
"name": "Windows Server 2016",
"version": "10.0"
},
"heartbeatPeriod": 60000,
"availability": "UP",
"version": "4.7.2 (revision 4d4020c3b7)",
"slots": [
{
"id": {
"hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1",
"id": "37ef5819-e892-471e-9597-bb5020b5cbab"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "chrome",
"custom-cap": false,
"platformName": "Windows 10",
"se:webDriverExecutable": "D:\\Selenium\\Drivers\\chromedriver.exe"
}
},
{
"id": {
"hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1",
"id": "e549d761-5f80-4acb-8abb-dc6a11452f8b"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "firefox",
"custom-cap": false,
"platformName": "Windows 10",
"se:webDriverExecutable": "D:\\Selenium\\Drivers\\geckodriver.exe"
}
},
{
"id": {
"hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1",
"id": "f0351165-16bf-4ca1-8a01-3e78b455e82d"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "internet explorer",
"custom-cap": false,
"platformName": "Windows 10",
"se:ieOptions": {
"ie.edgechromium": "true",
"ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe"
},
"se:webDriverExecutable": "D:\\Selenium\\Drivers\\IEDriverServer.exe"
}
},
{
"id": {
"hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1",
"id": "285ba454-0da4-4192-a5c4-1e99f3049bcb"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "MicrosoftEdge",
"custom-cap": false,
"platformName": "Windows 10",
"se:webDriverExecutable": "D:\\Selenium\\Drivers\\msedgedriver.exe"
}
},
{
"id": {
"hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1",
"id": "9c79b70c-f375-4862-b06e-8c00de974b7b"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "firefox",
"custom-cap": false,
"platformName": "Windows 10",
"se:webDriverExecutable": "D:\\Selenium\\Drivers\\geckodriver.exe"
}
},
{
"id": {
"hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1",
"id": "bf6c3818-6042-482a-9d5b-0ecf34c29e1b"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "chrome",
"custom-cap": false,
"platformName": "Windows 10",
"se:webDriverExecutable": "D:\\Selenium\\Drivers\\chromedriver.exe"
}
},
{
"id": {
"hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1",
"id": "8a3fba1d-0747-45fb-8ad3-32c458ed35a1"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "MicrosoftEdge",
"custom-cap": false,
"platformName": "Windows 10",
"se:webDriverExecutable": "D:\\Selenium\\Drivers\\msedgedriver.exe"
}
}
]
},
{
"id": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe",
"uri": "http:\u002f\u002f10.151.18.98:5555",
"maxSessions": 2,
"osInfo": {
"arch": "amd64",
"name": "Linux",
"version": "3.10.0-1160.71.1.el7.x86_64"
},
"heartbeatPeriod": 60000,
"availability": "UP",
"version": "4.7.2 (revision 4d4020c3b7)",
"slots": [
{
"id": {
"hostId": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe",
"id": "16846465-ec7e-4a66-96d2-7946e4f194cf"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "firefox",
"custom-cap": false,
"platformName": "LINUX",
"se:webDriverExecutable": "\u002fapp\u002fselenium-connector\u002fgeckoDriver"
}
},
{
"id": {
"hostId": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe",
"id": "27100db9-b8a0-4b26-9f85-7922835c8c56"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "firefox",
"custom-cap": false,
"platformName": "LINUX",
"se:webDriverExecutable": "\u002fapp\u002fselenium-connector\u002fgeckoDriver"
}
},
{
"id": {
"hostId": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe",
"id": "06e3caea-c951-4155-8dde-6f3e379abf67"
},
"lastStarted": "2023-02-07T08:51:00.449534Z",
"session": null,
"stereotype": {
"browserName": "chrome",
"custom-cap": false,
"platformName": "LINUX",
"se:webDriverExecutable": "\u002fapp\u002fselenium-connector\u002fchromeDriver"
}
},
{
"id": {
"hostId": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe",
"id": "0626fe53-7d75-4631-86f5-1ddbdcebcc1b"
},
"lastStarted": "2023-02-07T08:53:13.896321Z",
"session": null,
"stereotype": {
"browserName": "chrome",
"custom-cap": false,
"platformName": "LINUX",
"se:webDriverExecutable": "\u002fapp\u002fselenium-connector\u002fchromeDriver"
}
}
]
},
{
"id": "cf0e8b1b-7b0c-4b51-a10d-c45ed9af2cbd",
"uri": "http:\u002f\u002f.....:5555",
"maxSessions": 1,
"osInfo": {
"arch": "amd64",
"name": "Windows Server 2016",
"version": "10.0"
},
"heartbeatPeriod": 60000,
"availability": "UP",
"version": "4.7.2 (revision 4d4020c3b7)",
"slots": [
{
"id": {
"hostId": "cf0e8b1b-7b0c-4b51-a10d-c45ed9af2cbd",
"id": "0ebb53a1-01b9-4486-8892-2b76903a7a3f"
},
"lastStarted": "1970-01-01T00:00:00Z",
"session": null,
"stereotype": {
"browserName": "internet explorer",
"custom-cap": true,
"platformName": "Windows 10",
"se:ieOptions": {
"ie.edgechromium": "true",
"ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe"
},
"se:webDriverExecutable": "D:\\Selenium\\Drivers\\IEDriverServer.exe"
}
}
]
}
]
}
}
I am just interested in IE browser. Bellow you can find part of th code which it“s running:
public InternetExplorerCaixa(boolean cap){
options = new InternetExplorerOptions();
options.attachToEdgeChrome();
options.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
if (cap) {
options.setCapability(custom-cap, true);
} else {
options.setCapability(custom-cap, false);
}
}
What happened?
I have a hub with two kind of different Grid nodes. I am trying to set a custom-cap in IE (Edge with Internet Explorer Mode), however, when I set (ācustom-capā, false), the tests are executed on any node indistinctly.
I have trying to set different kind of prefix as well, but nothing works: (āc:custom-capā, false), (āie:custom-capā, false), (āse:custom-capā, false).
How can we reproduce the issue?
The custom capability is applied on the http://hubipadress:4444/status page: { "value": { "ready": true, "message": "Selenium Grid ready.", "nodes": [ { "id": "8c748cc5-a767-4392-b0d7-4abffc16aec1", "uri": "http:\u002f\u002f.....:5555", "maxSessions": 2, "osInfo": { "arch": "amd64", "name": "Windows Server 2016", "version": "10.0" }, "heartbeatPeriod": 60000, "availability": "UP", "version": "4.7.2 (revision 4d4020c3b7)", "slots": [ { "id": { "hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1", "id": "37ef5819-e892-471e-9597-bb5020b5cbab" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "chrome", "custom-cap": false, "platformName": "Windows 10", "se:webDriverExecutable": "D:\\Selenium\\Drivers\\chromedriver.exe" } }, { "id": { "hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1", "id": "e549d761-5f80-4acb-8abb-dc6a11452f8b" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "firefox", "custom-cap": false, "platformName": "Windows 10", "se:webDriverExecutable": "D:\\Selenium\\Drivers\\geckodriver.exe" } }, { "id": { "hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1", "id": "f0351165-16bf-4ca1-8a01-3e78b455e82d" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "internet explorer", "custom-cap": false, "platformName": "Windows 10", "se:ieOptions": { "ie.edgechromium": "true", "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe" }, "se:webDriverExecutable": "D:\\Selenium\\Drivers\\IEDriverServer.exe" } }, { "id": { "hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1", "id": "285ba454-0da4-4192-a5c4-1e99f3049bcb" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "MicrosoftEdge", "custom-cap": false, "platformName": "Windows 10", "se:webDriverExecutable": "D:\\Selenium\\Drivers\\msedgedriver.exe" } }, { "id": { "hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1", "id": "9c79b70c-f375-4862-b06e-8c00de974b7b" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "firefox", "custom-cap": false, "platformName": "Windows 10", "se:webDriverExecutable": "D:\\Selenium\\Drivers\\geckodriver.exe" } }, { "id": { "hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1", "id": "bf6c3818-6042-482a-9d5b-0ecf34c29e1b" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "chrome", "custom-cap": false, "platformName": "Windows 10", "se:webDriverExecutable": "D:\\Selenium\\Drivers\\chromedriver.exe" } }, { "id": { "hostId": "8c748cc5-a767-4392-b0d7-4abffc16aec1", "id": "8a3fba1d-0747-45fb-8ad3-32c458ed35a1" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "MicrosoftEdge", "custom-cap": false, "platformName": "Windows 10", "se:webDriverExecutable": "D:\\Selenium\\Drivers\\msedgedriver.exe" } } ] }, { "id": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe", "uri": "http:\u002f\u002f10.151.18.98:5555", "maxSessions": 2, "osInfo": { "arch": "amd64", "name": "Linux", "version": "3.10.0-1160.71.1.el7.x86_64" }, "heartbeatPeriod": 60000, "availability": "UP", "version": "4.7.2 (revision 4d4020c3b7)", "slots": [ { "id": { "hostId": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe", "id": "16846465-ec7e-4a66-96d2-7946e4f194cf" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "firefox", "custom-cap": false, "platformName": "LINUX", "se:webDriverExecutable": "\u002fapp\u002fselenium-connector\u002fgeckoDriver" } }, { "id": { "hostId": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe", "id": "27100db9-b8a0-4b26-9f85-7922835c8c56" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "firefox", "custom-cap": false, "platformName": "LINUX", "se:webDriverExecutable": "\u002fapp\u002fselenium-connector\u002fgeckoDriver" } }, { "id": { "hostId": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe", "id": "06e3caea-c951-4155-8dde-6f3e379abf67" }, "lastStarted": "2023-02-07T08:51:00.449534Z", "session": null, "stereotype": { "browserName": "chrome", "custom-cap": false, "platformName": "LINUX", "se:webDriverExecutable": "\u002fapp\u002fselenium-connector\u002fchromeDriver" } }, { "id": { "hostId": "5ce2a7c7-1a56-44d9-8391-e9ba9a2ff3fe", "id": "0626fe53-7d75-4631-86f5-1ddbdcebcc1b" }, "lastStarted": "2023-02-07T08:53:13.896321Z", "session": null, "stereotype": { "browserName": "chrome", "custom-cap": false, "platformName": "LINUX", "se:webDriverExecutable": "\u002fapp\u002fselenium-connector\u002fchromeDriver" } } ] }, { "id": "cf0e8b1b-7b0c-4b51-a10d-c45ed9af2cbd", "uri": "http:\u002f\u002f.....:5555", "maxSessions": 1, "osInfo": { "arch": "amd64", "name": "Windows Server 2016", "version": "10.0" }, "heartbeatPeriod": 60000, "availability": "UP", "version": "4.7.2 (revision 4d4020c3b7)", "slots": [ { "id": { "hostId": "cf0e8b1b-7b0c-4b51-a10d-c45ed9af2cbd", "id": "0ebb53a1-01b9-4486-8892-2b76903a7a3f" }, "lastStarted": "1970-01-01T00:00:00Z", "session": null, "stereotype": { "browserName": "internet explorer", "custom-cap": true, "platformName": "Windows 10", "se:ieOptions": { "ie.edgechromium": "true", "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe" }, "se:webDriverExecutable": "D:\\Selenium\\Drivers\\IEDriverServer.exe" } } ] } ] } } I am just interested in IE browser. Bellow you can find part of th code which it“s running: public InternetExplorerCaixa(boolean cap){ options = new InternetExplorerOptions(); options.attachToEdgeChrome(); options.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"); if (cap) { options.setCapability(custom-cap, true); } else { options.setCapability(custom-cap, false); } }Relevant log output
Operating System
Windows 10
Selenium version
Selenium Server 4.7.2
What are the browser(s) and version(s) where you see this issue?
Internet Explore 11
What are the browser driver(s) and version(s) where you see this issue?
IEDriverServer.exe 4.7.0.0 (32-bit)
Are you using Selenium Grid?
4.7.2