<?php

require __DIR__ . '/../vendor/autoload.php';
use Undemanding\Client\Page;
use Undemanding\Client\Session;
$client = new GuzzleHttp\Client(['base_uri' => 'http://localhost:4321']);
$session = Session::create($client);
$page = Page::create($client, $session);
$page->visit('http://localhost:5432')->run('document.body.innerHTML = "hello chris"')->resize(1024, 768)->zoom(2)->preview();
Beispiel #2
0
 /**
  * @param Client $client
  * @param Session $session
  *
  * @return Page
  */
 private function createUndemandingPage(Client $client, Session $session)
 {
     return Page::create($client, $session);
 }