Created
May 20, 2014 14:23
-
-
Save testingbot/dd879dcbc004db99b780 to your computer and use it in GitHub Desktop.
testingbot perl
This file contains 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
use Selenium::Remote::Driver; | |
#Input capabilities | |
my $extraCaps = { | |
"browser" => "internet explorer", | |
"version" => "7", | |
"platform" => "Windows" | |
}; | |
my $key = "changeme"; | |
my $secret = "changeme"; | |
my $host = "$key:$secret\@hub.testingbot.com"; | |
my $driver = new Selenium::Remote::Driver('remote_server_addr' => $host, | |
'port' => '80', 'extra_capabilities' => $extraCaps); | |
$driver->get('http://www.google.com'); | |
$driver->find_element('q','name')->send_keys("TestingBot"); | |
print $driver->get_title(); | |
$driver->quit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Selenium Installation from command line: