本文主要是介绍linux:The driver is not executable: /phantomjs/bin/phantomjs,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在linux使用selenium抓取的时候出现错误
java.lang.IllegalStateException: The driver is not executable: /phantomjs/bin/phantomjsat com.google.common.base.Preconditions.checkState(Preconditions.java:518)at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:150)at org.openqa.selenium.phantomjs.PhantomJSDriverService.findPhantomJS(PhantomJSDriverService.java:245)at org.openqa.selenium.phantomjs.PhantomJSDriverService.createDefaultService(PhantomJSDriverService.java:181)at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:105)at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:95)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.springfra
这篇关于linux:The driver is not executable: /phantomjs/bin/phantomjs的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!