Questions tagged [php-phantomjs]

PHP Library to load pages through PhantomJS

PHP PhantomJS is a flexible PHP library to load pages through the PhantomJS headless browser and return the page response. It is handy for testing websites that demand javascript support and also supports screen captures.

https://github.com/jonnnnyw/php-phantomjs

43 questions
0
votes
0 answers

How to Run PhantomJS Hostgator via PHP Shell Script

I am trying to run PhantomJS on my server hosted by HostGator. Phantom is initiated by a shell script that: Initializes Phantom JS and passes in the script to execute and Passes in three variables. This code has worked perfectly fine on my Xampp…
Ethan
  • 1,905
  • 2
  • 21
  • 50
0
votes
1 answer

How to run phantomjs testcases on a remote server from jenkins

I have a jenkins job that has to run phantomjs on a remote server. (basically test the code on a staging server). How do I do this?
user3920295
  • 889
  • 2
  • 13
  • 31
0
votes
1 answer

casperjs/phantomjs how to click an href="javascript:function" and get the resulted content

Im a newbie to phantomjs/casperjs. Im trying to click an href that has a javascript function (href='javascript:getPhoneNumber(....)) and I want to get the printed result which an a png image. here is the html block before the click:
0
votes
1 answer

screen shot with phantomjs is not accurate as its seeing in browser

Hi i am working with PhantomJs to capture screen from url. But it seem sresult not accurate. version of PhantomJS : 1.9.8, Operating system : Ubuntu 14 With this below code i tried to capture screen from a url but it seems its not giving perfect…
user2161895
0
votes
1 answer

PHP-PhantomJS: Twig_Error_Runtime?

I'm learning php-phantomjs and am gettting a Twig_Error_Runtime. Here's my PHP: $location = '/Applications/myWebApp/js/phantomjsTest.proc'; $serviceContainer = ServiceContainer::getInstance(); $procedureLoader =…
VikR
  • 4,818
  • 8
  • 51
  • 96
0
votes
1 answer

How to configure/enable php-phantomjs on shared hosting server

I am using PHP-Phantomjs http://jonnnnyw.github.io/php-phantomjs/ to capture the content of my website, tools I am using Laravel v5.0 and PHP-Phantomjs v4.0 it is working perfect on my local MAC machine but the problem is. I have uploaded files…
zarpio
  • 10,380
  • 8
  • 58
  • 71
0
votes
1 answer

PHP PhantomJS unable to make screenshot directory writable

I am trying to capture a screen and save it locally. When I run the code it shoots me an error message Fatal error: Uncaught JonnyW\PhantomJs\Exception\NotWritableException: Output file is not writeable by PhantomJs: This is my code
0
votes
1 answer

Composer + PhantomJS: Why is the class not found?

I am trying to install PHP PhantomJS package in a blank project, but I am getting this error: Fatal error: Class 'JonnyW\PhantomJs\Client' not found This is my composer.json: And this is my index.php: Can anyone tell why is the class not found? I…
Glad To Help
  • 5,299
  • 4
  • 38
  • 56
0
votes
1 answer

PHPPhantomJS not loading PhantomJS Module

I am trying to use PHP PhantomJS to load a page, but I get the error Fatal error: Uncaught JonnyW\PhantomJs\Exception\ProcedureFailedException: Error when executing PhantomJs procedure - File does not exist or is not executable: bin/phantomjs in…
0
votes
0 answers

Files included with // instead of http:// are not loaded

I try to get all links of a html construct generated by a script. The script is included like this: //server.de/script1.js The JavaScript-file is not loaded. If I change the // to http:// there is no problem. How to load files with // ? var page =…
rakete
  • 2,953
  • 11
  • 54
  • 108
0
votes
0 answers

Set own content and execute the scripts of it in PhantomJS

I want to manually set the content of my "page". I do not want to load it from an url. My html, which I set contains a script-file which creates links. Now I want to execute this script, and get the dynamically generated link. If I load the page…
rakete
  • 2,953
  • 11
  • 54
  • 108
0
votes
0 answers

Setting up php phantomjs

I am trying to setup Phantomjs on my Server and my hosts have installed the binary at "/usr/bin/phantomjs " reading the documentation from http://jonnnnyw.github.io/php-phantomjs/ i have tried the following…
emma perkins
  • 749
  • 1
  • 10
  • 28
0
votes
0 answers

Phantomjs gives result in 40sec running on desktop console app while it gives result after 150sec whle running asp.net visual studio express

I've been working on my project from the last two months, everything works fine but I have ended up with a problem here. I have been running my script in c#: using OpenQA.Selenium; using OpenQA.Selenium.PhantomJS; using System; using…
abdul riyaz
  • 80
  • 1
  • 1
  • 10
1 2
3