Giter Club home page Giter Club logo

Comments (2)

halfer avatar halfer commented on August 16, 2024

I wonder if you need to use Client::createSeleniumClient()? I would guess that the browser-specific static methods are for the WebDriver implementation, not Selenium.

from panther.

halfer avatar halfer commented on August 16, 2024

FWIW, I have set up a remote Geckodriver instance (instrumentisto/geckodriver) instead of Selenium and that seems to work well. However Panther had to rather be hacked to get it to work:

  • I use a custom FirefoxManager as I needed it not to be final
  • Some of the private properties in the above class needed to be switched to protected
  • I extended the above class to overwrite start(), so that the browser process start is skipped (it is permanently running in another container)

I will stick with what I have, but it is not great code. The authors of Panther really did not want it to be extended in this fashion! Perhaps I will submit an improvement request, so that this can be done in a more elegant way.

Now that I look at it afresh, it might have been easier just to copy FirefoxManager and amend the start() method in situ. Still not a nice solution though.

For now, if you want to run your browser as a separate container, using Selenium probably is the most straightforward way.

from panther.

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.