1. Go to this page and download the library: Download etsy/pigeon-webkit library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
etsy / pigeon-webkit example snippets
$pigeon = new PigeonWebkit\FunctionalPigeon();
$pigeon->visit("https://etsy.com");
print_r($pigeon->body()); // HTML content of etsy.com
$pigeon->click("a#sign-in"); // opens the sign in modal
// ...etc
use PigeonWebkit\FunctionalPigeon;
describe("Visiting a URL", function() {
before(function() {
$this->p = new FunctionalPigeon();
});
it("loads the page", function() {
$this->p->visit("https://etsy.com");
expect($this->p->body())->toContain("Shop directly from people around the world.");
});
});
$ php composer.phar global
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.