-
Couldn't load subscription status.
- Fork 143
Capabilities
The absolute local path to an .exe file to be started. Note that this capability is not required if debugConnectToRunningApp is specified.
e.g., C:\test\app.exe
Sets the set of command-line arguments to use when starting the application.
e.g., -port 345 -name jora
Launch delay in milliseconds, to be waited to let visuals to initialize after application started.
e.g., 0 (default)
If true, then application starting step are skipped.
e.g., true or false (default)
Keyboard simulator type.
e.g., BasedOnWindowsFormsSendKeysClass or BasedOnInputSimulatorLib (default)
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();
} }