'How can I use Desktop automation?
I tried Winium but xpath is not working. Is there anything besides Winium?
public class Desktop_Steps {
public static void main (String[] args) throws MalformedURLException, InterruptedException {
DesktopOptions option = new DesktopOptions();
option.setApplicationPath("location of app");
URL url = new URL(" http://127.0.0.1:4723/");
WiniumDriver driver = new WiniumDriver(url,option);
// driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
Thread.sleep(7000);
driver.findElement(By.id("15894400")).sendKeys("hello");
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
