Skip to content

Command Line Switches

hekra01 edited this page Oct 30, 2014 · 8 revisions

The command line arguments for QtWebDriver can be listed by running the exe with --help

d:\gitx\wdx>WebDriver.exe --help
Usage: WebDriver [--OPTION=VALUE]...
Starts QtWebDriver server

OPTION         DEFAULT VALUE      DESCRIPTION
http-threads   4                  The number of threads to use for handling
                                  HTTP requests
log-path       ./webdriver.log    The path to use for the QtWebDriver server
                                  log
root           ./web              The path of location to serve files from
port           9517               The port that QtWebDriver listens on
silence        false              If true, QtWebDriver will not log anything
                                  to stdout/stderr
verbose        false              If true, QtWebDriver will log lots of stuff
                                  to stdout/stderr
url-base                          The URL path prefix to use for all incoming
                                  WebDriver REST requests. A prefix and postfix
                                  '/' will automatically be appended if not
                                  present
config                            The path to config file (e.g. config.json) in
                                  JSON format with specified WD parameters as
                                  described above (port, root, etc.)
wi-server      false              If true, web inspector will be enabled
wi-port        9222               Web inspector listening port
version                           Print version information to stdout and exit
vnc-login      127.0.0.1:5900     VNC server login parameters
                                  format: login:password@ip:port
uinput         false              If option set, user input device
                                  will be registered in the system
test_data      ./                 Specifies where to look for test specific data
whitelist                         The path to whitelist file (e.g. whitelist.xml)
                                  in XML format with specified list of IP with
                                  allowed/denied commands for each of them.
webserver-cfg                     The path to mongoose config file
                                  (e.g. /path/to/config.json) in JSON format with
                                  specified mongoose start option
                                  (extra-mime-types, listening_ports, etc.)
                                  Option from webserver config file will have
                                  more priority than commandline param
                                  that specify the same option.
Clone this wiki locally