- mahalingesh
- Posts : 2
Join date : 2011-04-08
Unable to execute script on chrome browser. Getting INFO - Couldn't proxy to http://afxqmahfya/ because host not found message
Fri Apr 08, 2011 2:02 pm
Console logs
C:\Program Files\Java\jdk1.6.0\bin>java -jar selenium.jar -trustAllSSLCertificat
es
12:24:05.825 INFO - Java: Sun Microsystems Inc. 1.6.0-b105
12:24:05.841 INFO - OS: Windows XP 5.1 x86
12:24:05.841 INFO - v2.0 [b2], with Core v2.0 [b2]
12:24:05.935 INFO - RemoteWebDriver instances should connect to: http://127.0.0.
1:4444/wd/hub
12:24:05.935 INFO - Version Jetty/5.1.x
12:24:05.950 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
12:24:05.950 INFO - Started HttpContext[/selenium-server,/selenium-server]
12:24:05.950 INFO - Started HttpContext[/,/]
12:24:06.013 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@743399
12:24:06.013 INFO - Started HttpContext[/wd,/wd]
12:24:06.029 INFO - Started SocketListener on 0.0.0.0:4444
12:24:06.029 INFO - Started org.openqa.jetty.jetty.Server@89fbe3
12:24:12.560 INFO - Checking Resource aliases
12:24:12.560 INFO - Command request: getNewBrowserSession[*googlechrome, https:/
/10.5.105.239/] on session null
12:24:12.560 INFO - creating new remote session
12:24:12.654 INFO - Allocated session 371635e5e2d5446682ca4ec57372b3fc for https
://10.5.105.239/, launching...
12:24:12.654 INFO - Launching Google Chrome...
12:24:15.232 INFO - Started SocketListener on 0.0.0.0:1955
12:24:16.764 INFO - Got result: OK,371635e5e2d5446682ca4ec57372b3fc on session 3
71635e5e2d5446682ca4ec57372b3fc
12:24:16.764 INFO - Command request: open[/cgi-bin/welcome, ] on session 371635e
5e2d5446682ca4ec57372b3fc
12:24:16.951 INFO - Got result: OK on session 371635e5e2d5446682ca4ec57372b3fc
12:24:16.951 INFO - Command request: type[username, user1] on session 371635e5e2
d5446682ca4ec57372b3fc
12:24:19.826 INFO - Started SocketListener on 0.0.0.0:1981
12:26:08.538 INFO - Couldn't proxy to http://afxqmahfya/ because host not found
12:26:08.538 INFO - Couldn't proxy to http://vsqnwpmcoq/ because host not found
12:26:08.538 INFO - Couldn't proxy to http://sauyhiuiad/ because host not found
12:27:16.981 INFO - Command request: getHtmlSource[, ] on session 371635e5e2d544
This is what I am getting after executing my script
C:\Perl\bin>perl sample.pl
ok 1 - open, /cgi-bin/welcome
# Error requesting http://localhost:4444/selenium-server/driver/:
# 500 read timeout
not ok 2 - type, username, user1
# Failed test 'type, username, user1'
# at sample.pl line 26.
Perl + Selenium script
use strict;
use warnings;
use Time::HiRes qw(sleep);
use Test::WWW::Selenium;
use Test::More "no_plan";
our $temp=0;
our $user="user1";
our $password="password";
our $server="10.5.252.43";
our $appliance="10.5.105.239";
our $sshuser="root";
our $sshpass="password";
our $domain="LocalDomain";
our $url="/cgi-bin/welcome";
our $success=0;
my $sel = Test::WWW::Selenium->new( host => "localhost",
port => 4444,
browser => "*googlechrome",
browser_url => "https://$appliance/"
);
#$sel->open_ok("/cgi-bin/management");
$sel->start();
$sel->open_ok("$url");
$sel->type_ok("username", $user);
my $html=$sel->get_html_source();
print"$html";
$sel->type_ok("password", $password);
$sel->select_ok("domain", "label=LocalDomain");
$sel->click_ok("//input[\@value='Login']");
$sel->wait_for_page_to_load_ok(30000);
Please help me on this.
-Thanks
Mahalingesh
C:\Program Files\Java\jdk1.6.0\bin>java -jar selenium.jar -trustAllSSLCertificat
es
12:24:05.825 INFO - Java: Sun Microsystems Inc. 1.6.0-b105
12:24:05.841 INFO - OS: Windows XP 5.1 x86
12:24:05.841 INFO - v2.0 [b2], with Core v2.0 [b2]
12:24:05.935 INFO - RemoteWebDriver instances should connect to: http://127.0.0.
1:4444/wd/hub
12:24:05.935 INFO - Version Jetty/5.1.x
12:24:05.950 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
12:24:05.950 INFO - Started HttpContext[/selenium-server,/selenium-server]
12:24:05.950 INFO - Started HttpContext[/,/]
12:24:06.013 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@743399
12:24:06.013 INFO - Started HttpContext[/wd,/wd]
12:24:06.029 INFO - Started SocketListener on 0.0.0.0:4444
12:24:06.029 INFO - Started org.openqa.jetty.jetty.Server@89fbe3
12:24:12.560 INFO - Checking Resource aliases
12:24:12.560 INFO - Command request: getNewBrowserSession[*googlechrome, https:/
/10.5.105.239/] on session null
12:24:12.560 INFO - creating new remote session
12:24:12.654 INFO - Allocated session 371635e5e2d5446682ca4ec57372b3fc for https
://10.5.105.239/, launching...
12:24:12.654 INFO - Launching Google Chrome...
12:24:15.232 INFO - Started SocketListener on 0.0.0.0:1955
12:24:16.764 INFO - Got result: OK,371635e5e2d5446682ca4ec57372b3fc on session 3
71635e5e2d5446682ca4ec57372b3fc
12:24:16.764 INFO - Command request: open[/cgi-bin/welcome, ] on session 371635e
5e2d5446682ca4ec57372b3fc
12:24:16.951 INFO - Got result: OK on session 371635e5e2d5446682ca4ec57372b3fc
12:24:16.951 INFO - Command request: type[username, user1] on session 371635e5e2
d5446682ca4ec57372b3fc
12:24:19.826 INFO - Started SocketListener on 0.0.0.0:1981
12:26:08.538 INFO - Couldn't proxy to http://afxqmahfya/ because host not found
12:26:08.538 INFO - Couldn't proxy to http://vsqnwpmcoq/ because host not found
12:26:08.538 INFO - Couldn't proxy to http://sauyhiuiad/ because host not found
12:27:16.981 INFO - Command request: getHtmlSource[, ] on session 371635e5e2d544
This is what I am getting after executing my script
C:\Perl\bin>perl sample.pl
ok 1 - open, /cgi-bin/welcome
# Error requesting http://localhost:4444/selenium-server/driver/:
# 500 read timeout
not ok 2 - type, username, user1
# Failed test 'type, username, user1'
# at sample.pl line 26.
Perl + Selenium script
use strict;
use warnings;
use Time::HiRes qw(sleep);
use Test::WWW::Selenium;
use Test::More "no_plan";
our $temp=0;
our $user="user1";
our $password="password";
our $server="10.5.252.43";
our $appliance="10.5.105.239";
our $sshuser="root";
our $sshpass="password";
our $domain="LocalDomain";
our $url="/cgi-bin/welcome";
our $success=0;
my $sel = Test::WWW::Selenium->new( host => "localhost",
port => 4444,
browser => "*googlechrome",
browser_url => "https://$appliance/"
);
#$sel->open_ok("/cgi-bin/management");
$sel->start();
$sel->open_ok("$url");
$sel->type_ok("username", $user);
my $html=$sel->get_html_source();
print"$html";
$sel->type_ok("password", $password);
$sel->select_ok("domain", "label=LocalDomain");
$sel->click_ok("//input[\@value='Login']");
$sel->wait_for_page_to_load_ok(30000);
Please help me on this.
-Thanks
Mahalingesh
- mahalingesh
- Posts : 2
Join date : 2011-04-08
Re: Unable to execute script on chrome browser. Getting INFO - Couldn't proxy to http://afxqmahfya/ because host not found message
Fri Apr 08, 2011 2:04 pm
The script is working with Firefox and IE8. I am using chrome 10.
- Unable to start script execution in IE browser it is showing IE Script Error with 'Yes' or 'No' buttons for Continue script execution or no.
- Unable to execute Logout class file
- In selenium web driver , while running the script ,after the browser(modal) message box is displayed and closed by selenium , the next button click statement is not executing
- Issues with IE close browser, Firefox window focus. unable to get screenshots any browser
- Unable to connect to host 127.0.0.1 on port 7055
Permissions in this forum:
You cannot reply to topics in this forum