| 159 | |
| 160 | |
| 161 | void ShowUsage(void) { |
| 162 | std::wcout << L"Launches the WebDriver server for the Internet Explorer driver" << std::endl |
| 163 | << std::endl |
| 164 | << L"IEDriverServer [/port=<port>] [/host=<host>] [/log-level=<level>]" << std::endl |
| 165 | << L" [/log-file=<file>] [/extract-path=<path>] [/silent]" << std::endl |
| 166 | << L" [/whitelisted-ips=<whitelisted-ips>] [/version]" << std::endl |
| 167 | << std::endl |
| 168 | << L" /port=<port> Specifies the port on which the server will listen for" << std::endl |
| 169 | << L" commands. Defaults to 5555 if not specified." << std::endl |
| 170 | << L" /host=<host> Specifies the address of the host adapter on which the server" << std::endl |
| 171 | << L" will listen for commands." << std::endl |
| 172 | << L" /log-level=<level>" << std::endl |
| 173 | << L" Specifies the log level used by the server. Valid values are:" << std::endl |
| 174 | << L" TRACE, DEBUG, INFO, WARN, ERROR, and FATAL. Defaults to FATAL" << std::endl |
| 175 | << L" if not specified." << std::endl |
| 176 | << L" /log-file=<file>" << std::endl |
| 177 | << L" Specifies the full path and file name of the log file used by" << std::endl |
| 178 | << L" the server. Defaults logging to stdout if not specified. " << std::endl |
| 179 | << L" /extract-path=<path>" << std::endl |
| 180 | << L" Specifies the full path to the directory used to extract" << std::endl |
| 181 | << L" supporting files used by the server. Defaults to the TEMP" << std::endl |
| 182 | << L" directory if not specified." << std::endl |
| 183 | << L" /silent Suppresses diagnostic output when the server is started." << std::endl |
| 184 | << L" /whitelisted-ips=<whitelisted-ips>" << std::endl |
| 185 | << L" Comma-separated whitelist of remote IPv4 addresses which" << std::endl |
| 186 | << L" are allowed to connect to the WebDriver server." << std::endl |
| 187 | << L" /version Displays version information and exits. All other arguments" << std::endl |
| 188 | << L" are ignored." << std::endl; |
| 189 | } |
| 190 | |
| 191 | int _tmain(int argc, _TCHAR* argv[]) { |
| 192 | CommandLineArguments args(argc, argv); |