Hallo All,

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


In reply to Selenium RC - How to reuse bowser session? by zerocred

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.