http://groups.google.com/group/selenium-users/browse_frm/thread/40c943d3e8813af9/ed18dee8c7781dbe?lnk=gst&q=reuse+browser+session#ed18dee8c7781dbe
public void startBrowser(String pstrBaseUrl, String pstrTimeou
+tInMilliseconds) throws Exception
{
browser = new DefaultSelenium("localhost", 4444, "*chrome", ps
+trBaseUrl);
browser.start();
browser.setTimeout(pstrTimeoutInMilliseconds);
}
in the code in message 5.
Unless I'm misunderstanding what is going on - (I dunno much about Java)
This one is better:
http://groups.google.com/group/selenium-users/browse_frm/thread/403b2b93e6e0e2b2/e16702ec4686cd1f?lnk=gst&q=reuse+browser+session+id#e16702ec4686cd1f
RemoteControlConfiguration rcc = new RemoteControlConfiguration();
rcc.reuseBrowserSessions();
SeleniumServer ss = new SeleniumServer(rcc);
ss.start();
What is the RemoteControlConfiguration()? or is that a home made function somewhere
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.