0
在sikuli的幫助下進行桌面自動化,但嘗試調用時間爲"NullPointerException"
異常的映像時。在Sikuli線程「main」java.lang.NullPointerException中的異常
代碼:提前
public static Screen s;
public static void main(String arg[]) throws IOException, InterruptedException, Exception {
Runtime.getRuntime().exec("images/Nintei_launch.exe");
Thread.sleep(5000);
s.click("c:/Users/abc/Desktop/Winword/selectSession.PNG");
感謝
plz check my代碼「public static Screen s;」 –
@IshwarDharmadhkari這是一個變量的聲明,而不是初始化。 –
也初始化,但同樣的錯誤 –