topical media & game development
mobile-query-three-tmp-selenium-php-test-screenshot.php / php
<?php
require 'vendor/php-webdriver-master/__init__.php';
session = session->open("http://google.com");
//
// url = "http://127.0.0.1:8000/plugins/minecraft/examples/index.html";
// url);
// session->screenshot();
// content_b64);
//
// file_put_contents(filename,
url = "http://google.com";
filename = "/tmp/screenshot.png";
saveCapture(url, session->close();
Save a capture of the screen
function saveCapture(url, session->open(contentBase64 = contentRaw = base64_decode(filename,
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.