-
Notifications
You must be signed in to change notification settings - Fork 140
Home
Golovin Gleb edited this page Mar 19, 2015
·
2 revisions
Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinFroms and WPF platforms.
- For quick start see Magic Samples
- For list of supported commands see Supported Commands
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();
} }