Example: Java-jar selenium-server.jar [-interactive] [Options]
- -Port <NNNN>:Port number used by the selenium server (4444 by default)
- -Timeout <NNNN>:The number of seconds before (timeout)
- -Interactive:Enter the interaction mode. Refer to the tutorial for more information
- -Multiwindow:Enter the mode in which all tested websites are opened in a separate window, and selenium supports Frame
- -Forcedbrowsermode <Browser>:Set the browser mode (for example, all sessions use "* iexplore", no matter what parameters are passed to getnewbrowsersession)
- -Userextensions <File>:Specifies a Javascript file loaded to selenium.
- -Browsersessionreuse:Stop reinitializing and replacing the browser during the test.
- -Alwaysproxy:By default, we try to do as few proxies as possible. setting this flag will force all browsers to communicate through proxies.
- -Firefoxprofiletemplate <dir>:Generally, a clean Firefox setting is generated before each startup. You can specify a directory for us to copy your settings instead of what we generated.
- -Debug:Enter the debug mode and more information will be tracked and debugged.
- -Htmlsuite <Browser> <starturl> <suitefile> <resultfile>:Run a separate HTML selenese (selenium core) test suite at the specified URL (for example, "http://www.google.com") using the specified browser (for example "* Firefox") and then exit immediately. You must specify the absolute path of the HTML test suite and the path of the HTML test result file that we will generate.
- -Proxyinjectionmode:Enter the proxy injection mode. In this mode, the selenium server acts as the proxy server that enters all the content of the test program. In this mode, access is allowed across multiple domains, and the following additional parameters are also supported:
- -Dontinjectregex <RegEx>:The additional regular expression, which can be used by the proxy injection mode to determine whether the injection is performed.
- -Userjsinjection <File>:Specify a Javascript file and inject it into all pages
- -Usercontenttransformation <RegEx> <replacement>:A regular expression that matches all tested HTML content. The second string replaces all matched content. This flag can be used multiple times. A simple example of using this parameter: If you add "-usercontenttransformation https http", all "HTTPS" strings in the HTML of the test application will be replaced with "HTTP ".
We also support two Java System attributes:-Dhttp. proxyhost and-dhttp. proxyport. The selenium server is used as the proxy server. Selenium RC generally reloads the configuration of your proxy server. This parameter is suitable for using your own proxy server while using the selenium server proxy. This configuration is used when the proxy server is used:
Java-dhttp. proxyhost = myproxy.com-dhttp. proxyport = 1234-jar selenium-server.jar
If your HTTP Proxy server needs to be verified, you can also set-Dhttp. proxyuserAnd-Dhttp. proxypassword.
Java-dhttp. proxyhost = myproxy.com-dhttp. proxyport = 1234-dhttp. proxyuser = Joe-dhttp. proxypassword = example-jar selenium-server.jar
Selenium private dish Series 9 -- selenium RC Server command line parameter list [VV]