Comments (7)
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.
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.
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.
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.
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.
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.
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)
- All binaries should be contained in resulting JAR HOT 6
- Tests fail after upgrade to PhantomJS 1.9.6 / GhostDriver 1.1.0 HOT 2
- instructions on README may not always work HOT 1
- phantomjs lookup mechanism does not work always HOT 4
- PhantomJS configuration is not customizable via Capabilities/arquillian.xml HOT 2
- Set command-line options by capabilities HOT 2
- Not working on MacBook HOT 6
- Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. HOT 4
- Does not support path names with spaces HOT 4
- Request new release to include recent windows fix HOT 5
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 arquillian-phantom-driver.