Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
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 Empty 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
avatar
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 Empty 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.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum