Winium远程自动化

时间:2018-12-22 14:31:22

标签: remote-desktop winium

无法通过Winium代码打开远程桌面。

下面是我的代码

public static void main(String[] args) throws MalformedURLException, InterruptedException {


    DesktopOptions option = new DesktopOptions();
    option.setApplicationPath("C:\\Windows\\System32\\calc.exe");

    try
    {
       WiniumDriver driver = new WiniumDriver(new URL("http://10.118.165.177:9999"), option);
    }
    catch(MalformedURLException e)
    {
        e.printStackTrace();
    }

0 个答案:

没有答案