我正在使用Winium来自动化桌面应用程序。这个过程是我从网上下载文件并执行它。这将打开远程应用程序。直到这里一切正常,但我无法访问新推出的远程Citrix应用程序的任何控制。任何帮助,将不胜感激。
public void SetupEnv() throws InterruptedException
{
DesktopOptions options = new DesktopOptions();
options.setApplicationPath("C:\\Users\\ajinkya\\Downloads\\launch.ica");
try
{
driver = new WiniumDriver(new URL("http://localhost:9999"), options);
}
catch (MalformedURLException e)
{
e.printStackTrace();
}
Thread.sleep(5000);
driver.findElementByClassName("Transparent Windows Client").click();
Thread.sleep(5000);
}
答案 0 :(得分:0)
也许你应该尝试这样的事情:
WebElement window = driver.findElementByName("abcd.exe");
WebElement menuItem = window.findElement(By.name ("Find Item"));
menuItem.click();