Skip to content

Command Line Switches

David Shepherd edited this page Mar 27, 2017 · 8 revisions

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

d:\gitx\wdx>WebDriver.exe --help
  • config
    The path to config file (e.g. config.json) in JSON format with specified WD parameters as described above (port, root, etc.)
  • http-threads
    The number of threads to use for handling HTTP requests (default: 4)
  • log-path
    The path to use for the QtWebDriver server log (default: ./webdriver.log)
  • port
    The port that QtWebDriver listens on (default: 9517)
  • root
    The path of location to serve files from (default: ./web)
  • silence
    If enabled, QtWebDriver will not log anything to stdout/stderr (default: false)
  • uinput
    If set, user input device will be registered in the system.
    See User-Input-Forwarding.
  • url-base
    The URL path prefix to use for all incoming WebDriver REST requests. A prefix and postfix / will be appended automatically if not present
  • verbose
    If enabled, QtWebDriver will log lots of stuff to stdout/stderr (default: false)
  • version
    Print version information to stdout and exit
  • vnc-login
    VNC server IP and port (default: 127.0.0.1:5900).
    See User-Input-Forwarding
  • webserver-cfg
    The path to the web server configuration json file, e.g
{
    "listening_ports":"9518",
    "extra_mime_types": ".qml=text/x-qml",
    "num_threads": "9",
}
  • whitelist
    Path to the whitelist xml file. See WhiteList
  • wi-server
    If true, web inspector will be enabled (default: false)
  • wi-port
    Web inspector listening port (default: 9222)
Clone this wiki locally