Comments (6)
Try with latest release, 1.4.10.
from webdrivermanager.
I made some tests to assess this issue, and indeed it happens from time to time.
I committed some patches to try to avoid it (in short, sending several HTTP header in the download request). It seems to be fixed now.
Please try with version 1.4.4 just released.
from webdrivermanager.
This still happens for me with version 1.4.8
from webdrivermanager.
I just tried 1.4.10 - that didn't work as excepted. Then phantomjs driver is no longer a part of the library.
from webdrivermanager.
For me it's working. An example as JUnit test case:
public class PhantomJsTest {
private WebDriver driver;
@BeforeClass
public static void setupClass() {
PhantomJsDriverManager.getInstance().setup();
}
@Before
public void setupTest() {
PhantomJSDriverService service = new PhantomJSDriverService.Builder()
.usingAnyFreePort()
.usingPhantomJSExecutable(
Paths.get(System.getProperty("phantomjs.binary.path"))
.toFile())
.usingCommandLineArguments(new String[] {
"--ignore-ssl-errors=true", "--ssl-protocol=tlsv1",
"--web-security=false", "--webdriver-loglevel=INFO" })
.build();
DesiredCapabilities desireCaps = new DesiredCapabilities();
driver = new PhantomJSDriver(service, desireCaps);
}
@After
public void teardown() {
if (driver != null) {
driver.quit();
}
}
@Test
public void test() {
// Your test code ere
}
}
from webdrivermanager.
I think that is because the driver is still included as a test dependency.
I am downloading it from maven you can see here that many dependencies have changed from 1.4.9 to 1.4.10
from webdrivermanager.
Related Issues (20)
- java.lang.NumberFormatException: For input string: "public" HOT 1
- mirror repository for chrome driver version later than 115 not work HOT 2
- org.bouncycastle:bcprov-jdk18on Observable Timing Discrepancy VULNERABILITY HOT 2
- Error running Firefox headless HOT 2
- Facing issue when executing jar in jenkins pipeline HOT 5
- Exception when creating driver manager for latest Chrome version
- Session not created: This version of ChromeDriver only supports Chrome version 114 HOT 7
- launching browsers from/on restricted containers such as flatpak HOT 4
- Latest Driver download not downloading proper driver for specific OS HOT 1
- Problems unpacking geckodriver on Mac/Linux HOT 2
- The new instance of create() has the same windowhandle ID. HOT 2
- org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure HOT 1
- io.github.bonigarcia.wdm.config.WebDriverManagerException: org.apache.hc.core5.http.ConnectionClosedException: Premature end of Content-Length delimited message body HOT 1
- Architecture filter is failing with latest chromedriver version HOT 2
- HTTP 404 when downloading microsoft edgedriver HOT 7
- ChromeDriverManager not returning the correct path of the driver binary
- OSError: [Errno 8] Exec format error: '/Users/engineer/.wdm/drivers/chromedriver/mac64/127.0.6533.72/chromedriver-mac-x64/THIRD_PARTY_NOTICES.chromedriver' HOT 1
- No proper candidate URL to download geckodriver 0.35.0 HOT 3
- Selenium -Java Chrome driver issue Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: cannot connect to chrome at 127.0.0.1:9111 from chrome not reachable HOT 2
- CONNECT refused by proxy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdrivermanager.