We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinFroms and WPF platforms.
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();
} }