我有以下代码:
package grid;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
public class TestGrid {
static Webdriver driver;
static String nodeUrl;
public static void main(String[] args) {
// TODO Auto-generated method stub
nodeUrl = "http://192.168.100.4:5555/wd/hub";
//DesiredCapabilities capabilities = DesiredCapabilities.
}
}
我收到以下错误:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at grid.TestGrid.main(TestGrid.java:16)
我已经在" Lib"之外添加了2个罐子。文件夹,但仍然无法正常工作。可能是什么问题呢?