我试图在Eclipse中运行以下代码但得到此异常:
源附件不包含Throwables.class文件的源.
我试图改变所需jar的路径,但是没有用.
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"); …
Run Code Online (Sandbox Code Playgroud)