0
我想使用Sikuli4Net但我行screen.Wait(gmail);
得到这个异常:Sikuli4Net无法找到服务器错误
System.Net.WebException:
Unable to connect to the remote server
InnerException {"No connection could be made because the
target machine actively refused it 127.0.0.1:8080"} System.Exception
{System.Net.Sockets.SocketException}
"No connection could be made because the target machine actively refused it
127.0.0.1:8080"
这里是我的代码:
IWebDriver driver = new ChromeDriver();
driver.Manage().Window.Maximize();
driver.Navigate().GoToUrl("https://www.google.co.nz/");
Thread.Sleep(2000);
Screen screen = new Screen();
Pattern gmail = new
Pattern(Path.Combine(AppDomain.CurrentDomain.BaseDirectory +
@"/images/gmail.PNG"));
screen.Wait(gmail);
screen.Click(gmail, true);
我也试过这个代码:
APILauncher launcher = new APILauncher(true);
launcher.Start();
我得到这个异常再次在行launcher.Start();
:
System.ComponentModel.Win32Exception:
The system cannot find the path specified
我该如何解决这个问题?