我正在使用Selenium Webdriver IE(3.14)测试Silverlight应用程序。请注意,此应用程序只能在IE上打开我的Selenium Webdriver代码可以正常运行,但我只能看到Silverlight应用程序的一部分,因此我调用了Sikhuli使用此代码
private static void UseSikhuliResources()throws FindFailed
{
Screen screen=new Screen();
Pattern openButton = new Pattern("C:\\Users\\eclipseoxygen-workspace\\IntergratedSeleniumSikuliRiOAutomationAPP\\bin\\createNew.png");
screen.wait("C:\\Users\\eclipseoxygen-workspace\\IntergratedSeleniumSikuliRiOAutomationAPP\\bin\\createNew.png", 20);
screen.click(openButton);
}
在我的程序中,我导入
import org.sikuli.basics.Debug;
import org.sikuli.script.*;
import java.util.regex.*;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.*;
import org.openqa.selenium.Keys;
import org.openqa.selenium.ie.*;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.*;
import static org.sikuli.basics.Debug.*;
问题在于,我在读取第一行后立即调用函数以执行
((Screen screen=new Screen();))
我在下面遇到这样的错误,但是如果我单独使用带有导入功能的代码,它可以很好地执行。因此,请清楚如果我创建一个新程序并添加上面的代码,它可以正常工作而没有任何错误做错了,请告知
收到错误错误”
*** classpath dump
0: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/resources.jar
1: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/rt.jar
2: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/jsse.jar
3: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/jce.jar
4: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/charsets.jar
5: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/jfr.jar
6: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/access-bridge-32.jar
7: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/cldrdata.jar
8: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/dnsns.jar
9: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/jaccess.jar
10: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/jfxrt.jar
11: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/localedata.jar
12: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/nashorn.jar
13: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/sunec.jar
14: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/sunjce_provider.jar
15: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/sunmscapi.jar
16: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/sunpkcs11.jar
17: /C:/Program%20Files%20(x86)/Java/jre1.8.0_181/lib/ext/zipfs.jar
18: /C:/Users/eclipseoxygen-workspace/IntergratedSeleniumSikuliRiOAutomationAPP/bin/
19: /C:/Users/Documents/Sikuli/sikulixapi-1.1.0.jar
20: /C:/Users/Documents/Sikuli/sikulirestapi-1.0.jar
21: /C:/Users/Documents/Selenium/selenium-server-standalone-3.14.0.jar
22: /C:/Program%20Files%20(x86)/Sikuli%20X/sikuli-script.jar
*** classpath dump end
[error] RunTimeINIT: *** terminating: libs to export not found on above classpath: /sikulixlibs/windows/libs32