Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Unable to execute script on chrome browser. Getting INFO - Couldn't proxy to http://afxqmahfya/ because host not found message

View previous topic View next topic Go down

Unable to execute script on chrome browser. Getting INFO - Couldn't proxy to http://afxqmahfya/ because host not found message

Post by mahalingesh on 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

mahalingesh

Posts : 2
Join date : 2011-04-08

Back to top Go down

Re: Unable to execute script on chrome browser. Getting INFO - Couldn't proxy to http://afxqmahfya/ because host not found message

Post by mahalingesh on Fri Apr 08, 2011 2:04 pm

The script is working with Firefox and IE8. I am using chrome 10.

mahalingesh

Posts : 2
Join date : 2011-04-08

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum