Skip to content

Command Line Options

Golovin Gleb edited this page Mar 19, 2015 · 1 revision

Following command-line options are supported (none of them is required).


--port=PORT

Port to listen on. Default: 9999.


--url-base=URL-BASE

Base URL path prefix for commands, e.g. wd/url. Default is empty (no prefix used).


--verbose

Log verbosely. Increases logging level to DEBUG.


--log-path=FILE

Write log to specified file instead of stdout, increases log level to INFO. Default is empty (logging to stdout).

package testcases; import java.net.MalformedURLException; import java.net.URL; import org.openqa.selenium.By; import org.openqa.selenium.winium.DesktopOptions; import org.openqa.selenium.winium.WiniumDriver public class calculator {

public static void main(String[] args) throws MalformedURLException, InterruptedException {
    DesktopOptions option = new DesktopOptions();
    option.setApplicationPath("C:\\Windows\\System32\\calc.exe");
    WiniumDriver driver = new WiniumDriver(new URL("http://localhost:9999"), option);
    Thread.sleep(5);
    driver.findElement(By.name("Five")).click();
    driver.findElement(By.id("multiplyButton")).click();
    driver.findElement(By.name("Six")).click();
    driver.findElement(By.id("equalButton")).click();

} }

Clone this wiki locally