Recommended way to select a specific node

23 views
Skip to first unread message

Pieter-Jan Busschaert

unread,
Jun 14, 2024, 8:34:39 AM (12 days ago) Jun 14
to Selenium Users
Hello,

I am setting up a distributed test system, with the docker images selenium/hub and selenium/node-chrome. There will be multiple node-chrome images, all launched on different hardware. I want to launch a specific tests on specific hardware (specific node-chrome instance).

Online I found multiple discussions / explanations about setting browser capabilities, like here .  From that report, setting he environment variable  NODE_APPLICATION_NAME seems the most easy way. Especially because it seems the only way to avoid re-specifying all the capabilities.

But, I also found in an issue here that this application name is deliberately not supported anymore from grid4 onwards.

So, what is currently the recommended way to set a specific capability on a chrome node? I prefer to not create my own Dockerfile, but just use a docker-compose that launches the standard selenium/node-chrome:latest image with any options/env vars/config files/... that are needed (without having to specify/overwrite/... standard default config options)


Kind regards,

Pieter-Jan

Krishnan Mahadevan

unread,
Jun 14, 2024, 8:38:50 AM (12 days ago) Jun 14
to seleniu...@googlegroups.com
Please refer to the section “Setting custom capabilities for matching specific Nodes” in https://www.selenium.dev/documentation/grid/configuration/toml_options/ 

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2e6f066f-dc81-48c3-945a-a3e39418e95dn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages