Giter Site home page Giter Site logo

Comments (6)

bonigarcia avatar bonigarcia commented on August 20, 2024 1

Try with latest release, 1.4.10.

from webdrivermanager.

bonigarcia avatar bonigarcia commented on August 20, 2024

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.

mellson avatar mellson commented on August 20, 2024

This still happens for me with version 1.4.8

from webdrivermanager.

mellson avatar mellson commented on August 20, 2024

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.

bonigarcia avatar bonigarcia commented on August 20, 2024

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.

mellson avatar mellson commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.