Giter Club home page Giter Club logo

Comments (9)

rduinmayer avatar rduinmayer commented on September 4, 2024

Oke i found a "switch" So now the driver is Firefox.

    private WebDriver loadSelenium() {
        driver = new EventFiringWebDriver(new FirefoxDriver()).register(new MyWebDriverEventListener())
//        driver = new EventFiringWebDriver(new HtmlUnitDriver(true)).register(new MyWebDriverEventListener())
        return driver

But when i run the tests, firefox starts but the tests are not being run in the browser at all. Now i get the following in the logs:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

Any ideas? @restagner @aslakhellesoy @poojaoza

from cucumber-groovy-selenium.

rduinmayer avatar rduinmayer commented on September 4, 2024

conemu64_2016-08-10_16-32-50

from cucumber-groovy-selenium.

restagner avatar restagner commented on September 4, 2024

@rduinmayer

Based on the previous posts, I suspect that the version of Selenium defined within pom file is old (2.47.1), and that the version of Firefox you are attempting to connect to is the latest version. This mismatch likely leads to the error you noted earlier

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

To resolve this issue, update the version of Selenium within the pom file.

from cucumber-groovy-selenium.

rduinmayer avatar rduinmayer commented on September 4, 2024

Thanks for the reply @restagner

I updated the version just now and still the same problem :(

    <selenium.version>2.53.1</selenium.version>

I did mvn install. tthat should be engouh right to update the pom?

from cucumber-groovy-selenium.

restagner avatar restagner commented on September 4, 2024

@rduinmayer

Which version of Firefox are you using?

from cucumber-groovy-selenium.

rduinmayer avatar rduinmayer commented on September 4, 2024

@restagner i tried downgrading (to fix the earlier problem) so i am on version 45.1.0 or Fixefox right now. I tried a few versions between that and the latest version.

from cucumber-groovy-selenium.

restagner avatar restagner commented on September 4, 2024

Based on the Selenium changelog (https://github.com/SeleniumHQ/selenium/blob/master/java/CHANGELOG), it appears that FF45 should work. I'll give it a try on my end

from cucumber-groovy-selenium.

restagner avatar restagner commented on September 4, 2024

@rduinmayer

I upgraded my local copy of Selenium to 2.53.1. After updating the pom file, I was forced to update the MyWebDriverEventListener class. Apparently, with version 2.53.1, the API surrounding the WebDriverEventListener has changed.

I have committed my changes back to the repository. You may want to perform a git pull to obtain the latest changes

With that being said, I was able to run the tests using FF 44.0.1 and FF 38.

from cucumber-groovy-selenium.

rduinmayer avatar rduinmayer commented on September 4, 2024

Awesome, latst version of FF and version of selenium 2.53.1 work like a charm. There are some things functional not correct in the test but it opens google and searches something so this is fine.

Thanks for updating the project :) 👍 @restagner

from cucumber-groovy-selenium.

Related Issues (1)

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.