die Quelle Anhang enthält nicht die Quelle für die Datei Throwables.class
Ich versuche, führen Sie den folgenden code in Eclipse erhalten aber diese Ausnahme:
Quelle Anhang enthält nicht die Quelle für die Datei Throwables.class.
Habe ich versucht den Pfad zu ändern von der erforderlichen jar, arbeitet aber nicht.
package automationFramework;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
public class FirstTestCase {
private static WebDriver driver = null;
public static void main(String[] args) {
//TODO Auto-generated method stub
//Create a new instance of the Firefox driver
driver = new FirefoxDriver();
//Put a Implicit wait, this means that any search for elements on the page could take the time the implicit wait is set for before throwing exception
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
//Launch the Online Store Website
driver.get("http://www.store.demoqa.com");
//Find the element that's ID attribute is 'account'(My Account)
driver.findElement(By.xpath(".//*[@id='account']/a")).click();
//Find the element that's ID attribute is 'log' (Username)
//Enter Username on the element found by above desc.
driver.findElement(By.id("log")).sendKeys("testuser_1");
//Find the element that's ID attribute is 'pwd' (Password)
//Enter Password on the element found by the above desc.
driver.findElement(By.id("pwd")).sendKeys("Test@123");
//Now submit the form. WebDriver will find the form for us from the element
driver.findElement(By.id("login")).click();
//Print a Log In message to the screen
System.out.println(" Login Successfully, now it is the time to Log Off buddy.");
//Find the element that's ID attribute is 'account_logout' (Log Out)
driver.findElement (By.xpath(".//*[@id='account_logout']/a")).click();
//Close the driver
driver.quit();
}
}
Es ist nicht die Ausnahme. Klicken Sie einfach auf "OK" in diesem dialog, den Sie bekommen, und suchen für die echte Ausnahme in der Konsole anzeigen.
Ist das Programm richtig läuft?
Ich bekomme die gleiche Sache. Es gibt keine "OK" - Taste. Und es ist bereits konfiguriert, Sie zu suchen src.zip Datei.
Ist das Programm richtig läuft?
Ich bekomme die gleiche Sache. Es gibt keine "OK" - Taste. Und es ist bereits konfiguriert, Sie zu suchen src.zip Datei.
InformationsquelleAutor Ahmed Sayed | 2014-12-25
Du musst angemeldet sein, um einen Kommentar abzugeben.
Wie es aussieht, haben Sie nicht gezeigt Eclipse den Quellcode für die Java-Bibliothek. Es sollte eine Taste, um ihn zu suchen, und in der JDK-Dateien, es sollte eine
src.zip
Datei.InformationsquelleAutor FlyingPiMonster
Bedeutet es, dass es nicht in der Lage zu finden, ein throwable exception zu werfen, in Ihre Bibliothek. Sie müssen zum importieren der throwable java-Klasse
InformationsquelleAutor Prasad Pathak