

收到两 (2) 条错误消息:
package org.openqa.selenium does not exist
package org.openqa.selenium.chrome does not exist
Run Code Online (Sandbox Code Playgroud)
这是我的程序的样子:MyClass.java
package newPackage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class MyClass {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver",
"/Users/Informatics/Downloads/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("google.com");
driver.close();
}
}
Run Code Online (Sandbox Code Playgroud)
ps 我正在使用最新版本的 Eclipse、Selenium、Chrome 和 Java。
#include <iostream>
using namespace std;
#include <climits>
int main () {
int n_int = INT_MAX;
short n_short = SHRT_MAX;
long n_long = LONG_MAX;
long long n_llong = LLONG_MAX;
cout << "int is " << sizeof (int) << " bytes." << endl;
cout << "short is " << sizeof n_short << " bytes." << endl;
cout << "long is " << sizeof n_long << " bytes." << endl;
cout << "long long is " << sizeof n_llong << " bytes." << …Run Code Online (Sandbox Code Playgroud)