I'm trying to automate the windows based application which is developed using RCP Eclipse. I'm using WinApp driver to launch the application and automate using selenium. I'm not able to launch the application , I'm not getting any error for launching but I couldn't see the application launched, it is taking time it seems, meanwhile I'm getting "element not found" exception.
Example:
DesiredCapabilities appCapabilities = new DesiredCapabilities();
appCapabilities.setCapability("app", "D:\\NewTest\\eclipse\\eclipse.exe");
appCapabilities.setCapability("platformName", "Windows");
appCapabilities.setCapability("deviceName","WindowsPC");
appCapabilities.setCapability("session-override", true);
try {
driver = new WindowsDriver(new URL("http://127.0.0.1:4723"), appCapabilities);
System.out.println("Connection success");
}
catch (MalformedURLException e) {
e.printStackTrace();
}
driver.findElementByName("HatsTry01").click();