我正在使用Winium自动化一个桌面应用程序。这个过程是我从web上下载一个文件并执行它。这将打开远程应用程序。到目前为止,一切都很正常,但我无法访问新启动的远程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);
}发布于 2018-03-21 13:26:56
也许你应该试试这样的东西:
WebElement window = driver.findElementByName("abcd.exe");
WebElement menuItem = window.findElement(By.name ("Find Item"));
menuItem.click();https://stackoverflow.com/questions/47630895
复制相似问题