Created
September 25, 2012 20:34
-
-
Save ppadron/3784276 to your computer and use it in GitHub Desktop.
Revisions
-
Pedro Padron renamed this gist
Sep 25, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Pedro Padron revised this gist
Sep 25, 2012 . No changes.There are no files selected for viewing
-
Pedro Padron created this gist
Sep 25, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ <?php require_once 'php-webdriver/lib/WebDriver/ClassLoader.php'; $driver = new WebDriver("http://localhost:4444/wd/hub"); $session = $driver->session('chrome'); $session->open('http://google.com/'); // $session->window('current')->postSize(array('width' => 1024, 'height' => 4*1024)); file_put_contents('banana.png', $session->screenshot());