PhantomJS does not behave as expected? This is a chance to report it!
Because the team behind PhantomJS is a group of volunteers with very limited maintenance capacity (more details), we have to make a certain trade-off when treating a report of an issue.
There is no guarantee that we can fix every issue (some are impossible or impractical to solve). Following the guide here will maximize the chance that the issue gets addressed, triaged, and looked at.
Some important points to consider:
To get the version of PhantomJS:
phantomjs --version
To get the operating system version:
uname -a
r
, and winver
(more details)Make sure your report has the following:
An example of an incomplete report:
I ran PhantomJS and it crashed.
An example of a good report:
Steps to reproduce:Actual behavior
- Download and install PhantomJS version 2.1 for Windows
- Open command prompt
- Run
phantomjs --version
PhantomJS crashed.
Expected behaviorPhantomJS shows its version number.
The instruction on the WebKit web site explains this as:
...to take a page that demonstrates a problem and remove as much content as possible while still reproducing the original problem.
Due to very limited maintenance capacity of the team behind PhantomJS (more details), it is simply not feasible to leave it to the PhantomJS team to perform the test case reduction.
When you report that e.g. PhantomJS does not work with web site X, it is also unexpected that you would perform a basic troubleshooting (see some tips given at the above WebKit instructions) to help narrowing down the issue and hopefully to lead it to a possible root cause.