How to replace a capability-value in the Selenium Grid before passing to a node How to replace a capability-value in the Selenium Grid before passing to a node selenium selenium

How to replace a capability-value in the Selenium Grid before passing to a node


You can build your on custom proxy to do so.In the custom proxy you need to extend the following class:org.openqa.grid.selenium.proxy.DefaultRemoteProxyand override beforeSession function which has TestSession object as a parameter, from where you can get the capabilities.While registering your node you need to specify the new proxy and start the hub with new custom proxy.