Giter Site home page Giter Site logo

Comments (7)

MatousJobanek avatar MatousJobanek commented on June 28, 2024

Yeah, if you want to use an older version of PhantomJS you need to use the respective version of arquillian-phantom-driver that is compatible with it

from arquillian-phantom-driver.

FibreFoX avatar FibreFoX commented on June 28, 2024

Your readme states this:

// enforce resolver to use given phantomjs version
capabilities.setCapability("phantomjs.binary.version", "2.1.1");

This makes me assume that I can use arquillian-phantom-driver with older versions. By adding some custom-field for users to adjust the location makes it zip-archive-agnostic.

So the solution you are suggesting is to use an older version? Is there a table where I can see which versions is suggested for PhantomJS 1.9.8?

from arquillian-phantom-driver.

MatousJobanek avatar MatousJobanek commented on June 28, 2024

well, yeah this property specifies which version of PhantomJS binary should be fetched, but the internal logic has been changed to reflect the latest version without taking care of backward compatibility. Looking at the code, the compatible version of arquillian-phantom-driver with your version should be 1.1.4.Final
It shouldn't be so difficult to change the logic to provide the backward compatibility also in the latest version - so you could use the same release for all PhantomJS versions.
If you provide a PR that would help you with using this project in your test suite, then I would merge it and release a new patch version 1.2.1.2

from arquillian-phantom-driver.

FibreFoX avatar FibreFoX commented on June 28, 2024

Seems to be not the only problem, as there is no linux-binary for PhantomJS 2.0.0, so even when having a way to adjust to location inside the ZIP-file, it would fail. Is this a know problem, that there is no linux-binary for 2.0.0?
There is even another "internal logic change", as far as I can see the maven-artifacts for version 1.9.0 do not have compatible classifier.

This makes me thinking about not creating some PR for changing this (or adding some adjustment-feature), but for just adding some note/compatibility-matrix to the README.

How do you think about this @MatousJobanek ?

from arquillian-phantom-driver.

MatousJobanek avatar MatousJobanek commented on June 28, 2024

As for the PhantomJS 2.0.0 for linux - there hasn't been any binary available ever - ariya/phantomjs#12948 so we didn't try to make the arquillian-phantom-driver to be compatible with this version. In other words, there hasn't been any release of the arquillian-phantom-binary for this version released.
If the problem with the classifiers is only for 1.9.0 then I would just make a note in the README.

May I have a question? Which project/framework do you use for writing the UI tests? This is "only" for getting the binary, so I'm asking what do you use for getting it into the code. Do you use Arquillian Drone with Graphene or something else?

from arquillian-phantom-driver.

FibreFoX avatar FibreFoX commented on June 28, 2024

So this will end up in some "readme-only" pull-request, I can live with that.

Actually we are using this for cucumber-tests to check some internal customer project. Plan was to boot some webdriver-instance (it was phantomjs) and then execute our cucumber-magic, without any other arquilian-magic. (Personally I do like your stuff, using it as often as I can, but this project does not need it, yet).

As working with PhantomJS is a pain to itself (old, lots of bugs, not maintained anymore), I started some (yet unfinished) project, which downloads Chromium and Webdriver: https://github.com/FibreFoX/headless-cr24

from arquillian-phantom-driver.

MatousJobanek avatar MatousJobanek commented on June 28, 2024

Unfortunately, there is no @ClassRule or @Rule for the Drone functionality. I'd love to have it, but I haven't had time to implement it yet. As for downloading of the webdriver binaries, I have it in Drone implemented. Check this part of the doc for more information how it works, and this package if you want to reuse some code. Here you can see how it is used for Chrome.

The reason why I had asked is that I don't use arquillian-phantom-driver project anymore as I have it implemented directly inside of the Drone

if you send the PR with the change of the README, I'll be happy to merge it to provide more information to any other user

from arquillian-phantom-driver.

Related Issues (11)

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.