zerocred has asked for the wisdom of the Perl Monks concerning the following question:
I'm using Selenium RC to automate website interaction. It would simplify and speed tasks if I can reuse an existing or previously set up browser session.
I already have set -browserSessionReuse option in the server and the auto_stop="0" so it leaves the browser running. When I set up a new connection I get this:
23:19:04.828 INFO - Command request: getNewBrowserSession[*iexplore, h +ttp://www.example.com/] on session null 23:19:04.828 INFO - grabbing available session... 23:19:04.828 INFO - creating new remote session 23:19:04.828 INFO - Allocated session eb2150d86aac4aa8812287aab1dae0df + for http://www.example.com/, launching... 23:19:04.921 INFO - Launching Embedded Internet Explorer... 23:19:05.921 INFO - Launching Internet Explorer HTA...
It seems to grab the available session but the 'Test::WWW::Selenium->new()'probably overwrites it - any alternative?, What am I doing wrong.
I see there is a session_id option mentioned in earlier documentation (but not current cpan documentation) - but not how to get it or use it...
I've seen mention of reusing the session in Java - but it seems to use a command not available in Perl - is that the case?
Cheers!
David
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Selenium RC - How to reuse bowser session?
by Anonymous Monk on Mar 21, 2010 at 16:08 UTC | |
by zerocred (Beadle) on Mar 21, 2010 at 16:35 UTC | |
by Anonymous Monk on Mar 21, 2010 at 17:00 UTC | |
by zerocred (Beadle) on Mar 21, 2010 at 18:05 UTC | |
by zerocred (Beadle) on Mar 22, 2010 at 18:41 UTC | |
by zerocred (Beadle) on Mar 21, 2010 at 16:49 UTC |