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 characters
<?php | |
/* | |
~色々定義~ | |
*/ | |
$idElement = $webdriver->findElementBy(LocatorStrategy::id, "id"); | |
$idElement->sendKeys(array($id) ); | |
$passwordElement = $webdriver->findElementBy(LocatorStrategy::id, "passwd"); | |
$passwordElement->sendKeys(array($passwd) ); | |
$idElement->submit(); | |
sleep(2); |
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 characters
<?php | |
require_once dirname(__FILE__) . "/phpwebdriver/WebDriver.php"; | |
require_once dirname(__FILE__) . "/phpwebdriver/LocatorStrategy.php"; | |
$URL = "http://example.com/"; | |
$webdriver = new WebDriver("localhost", "4444"); | |
$webdriver->connect("firefox"); | |
//サイトアクセス | |
$webdriver->get($URL); |
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 characters
$ wget https://php-webdriver-bindings.googlecode.com/files/php-webdriver-bindings-0.9.1.zip | |
$ unzip php-webdriver-bindings-0.9.1.zip |
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 characters
$ Xvfb :99 -ac -screen 0 1280x1024x24 -extension RANDR & | |
$ export DISPLAY=:99 | |
$ java -jar /path/to/selenium-server-standalone-2.38.0.jar & |
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 characters
$ sudo yum groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop" |
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 characters
$ sudo yum install Xvfb |
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 characters
$ sudo yum install firefox |
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 characters
$ sudo wget -qO- https://gist.github.com/alingogo/5325484/raw | sudo bash |
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 characters
$ sudo yum install java-1.7.0-openjdk.x86_64 java-1.7.0-openjdk-devel.x86_6 |
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 characters
$ wget http://selenium.googlecode.com/files/selenium-server-standalone-2.38.0.jar |