Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Selenium-Remote-Driver CPAN distribution.

Report information
The Basics
Id: 78883
Status: resolved
Priority: 0/
Queue: Selenium-Remote-Driver

People
Owner: TEODESIAN [...] cpan.org
Requestors: xiezhide [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: proxy setting of perl binding for Selenium2 did not work
test file as following: #!/usr/bin/perl use lib "$ENV{ADE_VIEW_ROOT}/search/test/utl/selenium"; use strict; use warnings; use Selenium::Remote::Driver; use Test::More tests=>4; #my $driver = Selenium::Remote::Driver->new; my $driver = Selenium::Remote::Driver->new('proxy' => {'proxyType' => 'manual', 'httpProxy' => 'www-proxy.us.oracle.com:80'}); $driver->get("http://www.google.com"); $driver->find_element('q','name')->send_keys("Hello WebDriver!"); ok($driver->get_title =~ /Google/,"title matches google"); is($driver->get_title,'Google',"Title is google"); ok($driver->get_title eq 'Google','Title equals google'); like($driver->get_title,qr/Google/,"Title matches google"); $driver->quit(); The proxy setting by new Driver didn't work. start selenium_server_standlone_2.25.0.jar run the above perl test script, the test will start a local firefox, but it was hanged by loading page www.google.com , this was cause by that, the proxy setting didn't work. if set the proxy by us manually, it will work fine. That's to say, the above proxy setting didn't work. can anyone do me a favor? Thanks, Kidd
We don't track bugs here. Could you please raise this issue at https://github.com/aivaturi/Selenium-Remote-Driver ? Also, CPAN doesn't have the latest changes & bug fixes. Please use the github repo for the latest code. So in your case, we did recently change some things for proxy. Try getting the new code & test it out. Your problem might already be addressed. On Fri Aug 10 05:40:17 2012, adderllyer wrote: Show quoted text
> test file as following: > #!/usr/bin/perl > > use lib "$ENV{ADE_VIEW_ROOT}/search/test/utl/selenium"; > > use strict; > use warnings; > use Selenium::Remote::Driver; > use Test::More tests=>4; > > #my $driver = Selenium::Remote::Driver->new; > my $driver = Selenium::Remote::Driver->new('proxy' => {'proxyType' => > 'manual', 'httpProxy' => 'www-proxy.us.oracle.com:80'}); > $driver->get("http://www.google.com"); > $driver->find_element('q','name')->send_keys("Hello WebDriver!"); > > ok($driver->get_title =~ /Google/,"title matches google"); > is($driver->get_title,'Google',"Title is google"); > ok($driver->get_title eq 'Google','Title equals google'); > like($driver->get_title,qr/Google/,"Title matches google"); > > $driver->quit(); > > The proxy setting by new Driver didn't work. > > start selenium_server_standlone_2.25.0.jar > run the above perl test script, the test will start a local firefox,
but Show quoted text
> it was hanged by loading page www.google.com , this was cause by that, > the proxy setting didn't work. if set the proxy by us manually, it
will Show quoted text
> work fine. > > That's to say, the above proxy setting didn't work. > > can anyone do me a favor? > > Thanks, > Kidd
closing issue, 5 years old