topical media & game development
mobile-query-three-tmp-selenium-php-test-mouse.php / php
<?php
require 'vendor/php-webdriver-master/__init__.php';
session = url = "http://127.0.0.1:8000/tmp/selenium/php/test-mouse.html";
// open the page
url);
session->title();
session->window()->size();
session->url();
var_dump(url);
var_dump(session->click();
session->element('css selector','body')->click();
//
//session->element('css selector','body')->moveto();
//
//session->window()->click();
//
session->moveto(array('xoffset' => 10, 'yoffset' => 0));
session->moveto(array('element' => sScriptResult = sScriptResult = sScriptResult);
session->execute(array(
'script' => 'return curMouseX + " " + curMouseY;',
'args' => array(),
));
var_dump(session->close();
(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.