【发布时间】:2016-10-23 00:17:12
【问题描述】:
我可以在下面/上面的代码的帮助下启动 Chrome 浏览器的空窗口,但它们是我遇到的一些错误
[3676:2080:0621/180047:ERROR:cache_util_win.cc(20)] Unable to move the cache: 0
[3676:2080:0621/180047:ERROR:cache_util.cc(134)] Unable to move cache folder C:\Users\Dhillon's\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\Dhillon's\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000
[3676:2080:0621/180047:ERROR:cache_creator.cc(129)] Unable to create cache
[3676:2080:0621/180047:ERROR:shader_disk_cache.cc(589)] Shader Cache Creation failed: -2
如果我使用 driver.get();命令它也不起作用
我使用的代码是:
package LearnStart;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class SeleniumStart {
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver",
"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
WebDriver driver = new ChromeDriver();
// driver.close();
// driver.get("http://www.google.com");
}
}
【问题讨论】: