I have tried this option before I add the user-extensions.js into the\\ selenium-server.jar. It didn't not work , so I'had to use this method,
Alos I'm not sure this method {font:color=#ff6600}java -jar selenium-server.jar -userExtensions user-extensions.js{font} will place user-extensions.js file into the core/scripts folder in server jar file. hence I placed the file directly there in the jar file
here under user extension section {font:color=#0000ff}
http://release.openqa.org/selenium-core/0.8.0/reference.html \\ it says {font}
\\ By default, Selenium looks for a file called "user-extensions.js", and loads the javascript code found in that file. This file provides a convenient location for adding features to Selenium, without needing to modify the core Selenium sources.
In the standard distibution, this file does not exist. Users can create this file and {font:color=#ff9900}place their extension code in this common location{font}, removing the need to modify the Selenium sources, and hopefully assisting with the upgrade process
I'm using this code , so i'm sure it has no error as it is provided in the sample
Selenium.prototype.doTypeRepeated = function(locator, text) {\\ // All locator-strategies are automatically handled by "findElement"\\ var element =
this.page().findElement(locator);\\ // Create the text to type\\ var valueToType = text + text;\\ // Replace the element text with the new text\\
this.page().replaceText(element, valueToType);\\ };
\\ so now , can you please tell me how to use this command in my java test script, ??
Any java people please help !!!