Thanks that's great!
This seems to sort of work, it does grab the same session if the session_id is in the constructor). I just found that I can get the existing session_id using

$sel->retrieve_last_remote_control_logs();

And can probably regex it out (I'm cut& pasting right now) - and store it somewhere if I leave the server running and relaunch my automation. Otherwise make a new session and then save teh session_id with that command or yours.

Selenium complains if I give it a 'magic string' that is not a real existing session_id, but if I give it the id of a real, existing session that is up it seems happy to use it. That seems to mean it can't be started up with arbitary session_id the server has to generate one - but if that can be captured it can be reused

However, selenium seems to require me to open a URL

$sel->open_ok("$url");

before it will allow clicking on anything. However this makes my site think I'm navigating away and makes a popup forcing me to choose to log out or abanodon the new attempts at hijacking the session! Needless to say, I didn't write the site I'm just trying to get it to do something quicker than I can type.

Still this is progress!! - Thanks so much

(off to bed now - I'll type up a full solution when I get it working)

In reply to Re^4: Selenium RC - How to reuse bowser session? by zerocred
in thread 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.