1 2 3 4 5 6 7 8 9 10
my $sel = WWW::Selenium->new( host => "localhost", port => 4444, browser => "*iexplore", browser_url => "http://www.google.com", ); $sel->start; $sel->open("http://www.google.com"); $sel->wait_for_page_to_load(5000); print $sel->get_title; $sel->stop;
1
2
3
4
5
root@mainrasp:/var/www/scheduler# Xvfb :99 -port 4444 &
[3] 8514
root@mainrasp:/var/www/scheduler# perl 18_tsv_anpfiff.pl
Error requesting http://localhost:4444/selenium-server/driver/:
500 Can't connect to localhost:4444
1
2
3
4
http://localhost:4444/selenium-server/driver/
http://localhost:4444
http://192.168.178.47:4444/selenium-server/driver/
http://192.168.178.47:4444
browser => "*iexplore",