java - Selenium-Grid: How to use `user-extensions.js` -


We are converting our Selenium tests to use Selenium-Grid.

I am trying to find one way to launch the selenium-grid hub and / or remote is that it can use the user-extensions.js Which we had created earlier Besides our extensions, I have been successful in getting everything to work with my old tests.

In online search I came to know that you can edit the project.properties file in the selenium-grid root directory and point to the user_extension_file property user-extensions.js Are there.

  user_extension_file = $ {baseir} /user-extensions.js  

I also try to use that relative and a complete path for that value I have tried to add the root selenium-grid folder and route selenium-grid folder of RC to the hub's property, and none of them works.

Does anyone know how to do this? Thank you.

OK, I understood this (finally). When you launch remote control using ant function, you can:

  Ent Launch-Remote Control - DysoniumArgS = "- User Extension Path / To / User- Extension .js ".  

It worked like a magic :)


Comments