2017 © Pedro Peláez
 

library casperjsphp

PHP wrapper for CasperJS

image

jordan-thiriet/casperjsphp

PHP wrapper for CasperJS

  • Monday, May 14, 2018
  • by jordan-thiriet
  • Repository
  • 1 Watchers
  • 1 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

php-casperjs

php-casperjs is a library PHP for wrapper CasperJs and write easily functional testing., (*1)

Installation

Before using php-casperjs, you need to install both library:, (*2)

1 - PhantomJS http://phantomjs.org/download.html, (*3)

2 - CasperJS http://casperjs.org/installation.html, (*4)

Usage

<?php

$casper = new \CasperJS\Casper(1280,800,"script/test.js");
$casper->start("http://spallian.com/");
$casper->click('//*[@id="menu-item-7376"]/a');
$casper->forStart(1,21);
$casper->setValue('//*[@id="post-7148"]/div/div/div[{i}]/div/div[2]/h5','username');
$casper->getValue('username');
$casper->captureSelector('//*[@id="post-7148"]/div/div/div[{i}]/div/div[1]/img','capture/{username}.jpg');
$casper->forEnd();
$casper->run();
print_r($casper->getOutput());

The Versions

14/05 2018

dev-master

9999999-dev https://github.com/jordan-thiriet/php-casperjs

PHP wrapper for CasperJS

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Thiriet Jordan

test phpunit functional testing browser casperjs