Is their a way to change the values of the Capabilities in the Selenium Grid?
I am already extending the org.openqa.grid.internal.utils.DefaultCapabilityMatcher
in a java class to validate some values. Need a way to replace them as well before passing to the Nodes?
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.DefaultRemoteProxy and 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With