Skip Menu |

This queue is for tickets about the Test-WWW-Selenium CPAN distribution.

Report information
The Basics
Id: 50074
Status: resolved
Priority: 0/
Queue: Test-WWW-Selenium

People
Owner: Nobody in particular
Requestors: gordon [...] cpanel.net
Cc:
AdminCc:

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



Subject: LWP::UserAgent timeout
Date: Mon, 28 Sep 2009 12:47:09 -0500
To: bug-Test-WWW-Selenium [...] rt.cpan.org
From: Gordon <gordon [...] cpanel.net>
While doing some testing on pages that take a long time to load, I changed the timeout to be 9999999 using WWW::Selenium->set_timeout. However, when I make a call to wait_for_page_to_load() LWP::UserAgent times out after 180 seconds. It seems to me that when set_timeout is called, a value should also be stored in WWW::Selenium so that when a UserAgent object is created, it should also have a similar timeout value.
Subject: Re: [rt.cpan.org #50074] LWP::UserAgent timeout
Date: Tue, 29 Sep 2009 20:35:18 -0700
To: bug-Test-WWW-Selenium [...] rt.cpan.org
From: Luke Closs <lukecloss [...] gmail.com>
Made some good progress on fixing this tonight, not only for set_timeout() but also for methods that accept a timeout as an arg. Cheers, Luke On Mon, Sep 28, 2009 at 10:47 AM, Gordon via RT <bug-Test-WWW-Selenium@rt.cpan.org> wrote: Show quoted text
> Mon Sep 28 13:47:43 2009: Request 50074 was acted upon. > Transaction: Ticket created by gordon@cpanel.net >       Queue: Test-WWW-Selenium >     Subject: LWP::UserAgent timeout >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: gordon@cpanel.net >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=50074 > > > > While doing some testing on pages that take a long time to load, I > changed the timeout to be 9999999 using WWW::Selenium->set_timeout. > However, when I make a call to wait_for_page_to_load() LWP::UserAgent > times out after 180 seconds. > > It seems to me that when set_timeout is called, a value should also be > stored in WWW::Selenium so that when a UserAgent object is created, it > should also have a similar timeout value. > >
On Mon Sep 28 10:47:43 2009, gordon@cpanel.net wrote: Show quoted text
> While doing some testing on pages that take a long time to load, I > changed the timeout to be 9999999 using WWW::Selenium->set_timeout. > However, when I make a call to wait_for_page_to_load() LWP::UserAgent > times out after 180 seconds. > > It seems to me that when set_timeout is called, a value should also be > stored in WWW::Selenium so that when a UserAgent object is created, it > should also have a similar timeout value.
Hello Gordon, I've made some changes so that set_timeout() and other commands that set a timeout will have that timeout respected by the UserAgent. Would you be interested in testing this before I push it to CPAN? The code is here: * http://github.com/lukec/cpan-selenium-rc-perl Cheers, Luke
Luke, I got the environment up and running that I was using to test this. It looks good to me. I was able to successfully run my own tests and the tests in the t/ folder without any problems. The MANIFEST file may need to be updated as it may be the cause of some warnings while running perl Makefile.PL Thanks, Gordon On Tue Oct 13 23:46:20 2009, LUKEC wrote: Show quoted text
> On Mon Sep 28 10:47:43 2009, gordon@cpanel.net wrote:
> > While doing some testing on pages that take a long time to load, I > > changed the timeout to be 9999999 using WWW::Selenium->set_timeout. > > However, when I make a call to wait_for_page_to_load() LWP::UserAgent > > times out after 180 seconds. > > > > It seems to me that when set_timeout is called, a value should also be > > stored in WWW::Selenium so that when a UserAgent object is created, it > > should also have a similar timeout value.
> > > Hello Gordon, > > I've made some changes so that set_timeout() and other commands that set > a timeout will have that timeout respected by the UserAgent. > > Would you be interested in testing this before I push it to CPAN? > > The code is here: > * http://github.com/lukec/cpan-selenium-rc-perl > > Cheers, > Luke
Subject: Re: [rt.cpan.org #50074] LWP::UserAgent timeout
Date: Tue, 20 Oct 2009 10:09:54 -0700
To: bug-Test-WWW-Selenium [...] rt.cpan.org
From: Luke Closs <lukecloss [...] gmail.com>
On Tue, Oct 20, 2009 at 6:24 AM, Gordon via RT <bug-Test-WWW-Selenium@rt.cpan.org> wrote: Show quoted text
>       Queue: Test-WWW-Selenium >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=50074 > > > Luke, > I got the environment up and running that I was using to test this.  It > looks good to me.  I was able to successfully run my own tests and the > tests in the t/ folder without any problems. > > The MANIFEST file may need to be updated as it may be the cause of some > warnings while running perl Makefile.PL
Great, thanks for the feedback! I'll push this out in the next few days. Cheers, Luke
I have uploaded Test-WWW-Selenium 1.20 to CPAN, and it should fix this issue.