- ducati1212
- Posts : 2
Join date : 2010-08-05
keeping the browser open after playblack
Thu Aug 05, 2010 2:59 am
Just trying out selenium rc using eclipse and java and I am finding it annoying that the browser is closed after test run. I dont see any way to control this im sure its very simple.
Any help telling selenium rc in eclipse to leave browser open after playback would be great.
Any help telling selenium rc in eclipse to leave browser open after playback would be great.
- metmanAmateur
- Posts : 58
Join date : 2010-04-02
Re: keeping the browser open after playblack
Thu Aug 05, 2010 11:19 pm
Why would you want this? It kind of defeats the purpose of automation to some extent. If you are trying to test your scripts, try using breakpoints or long sleeps instead.
- ducati1212
- Posts : 2
Join date : 2010-08-05
Re: keeping the browser open after playblack
Sat Aug 07, 2010 1:44 am
I don't think it defeats the purpose at all but thank you for your input.
I would rather a selenium.close() at the end that I can control than the auto close. just a preference
I would rather a selenium.close() at the end that I can control than the auto close. just a preference
- metmanAmateur
- Posts : 58
Join date : 2010-04-02
Re: keeping the browser open after playblack
Wed Aug 11, 2010 7:55 am
What in specific are you trying to do though? While I don't think the functionality you are looking for in specific is availalbe, there may be another mechanism that can get you the information you are looking for.
- lendrick
- Posts : 1
Join date : 2010-08-18
Re: keeping the browser open after playblack
Wed Aug 18, 2010 4:13 am
You'd want to do that because it would be useful for debugging tests that have been written in other languages and thus can't be run on the IDE. I'm having a test in PHP fail on me (it was originally made in the IDE, but I exported it to PHP code), and I'd really like to be able to look at the browser and figure out *why* this is happening, but the browser gets killed as soon as the error occurs.
- metmanAmateur
- Posts : 58
Join date : 2010-04-02
Re: keeping the browser open after playblack
Fri Aug 20, 2010 8:06 am
Well, for your case, if you are using an IDE for PHP, you should be able to utilize break points, step through, and other IDE tools to debug your tests. Or in the least, output to a file or some other mechanism to record what is going on moment to moment. Or, hack it by tacking on a waitforpagetoload at the end with a really long timeout.
- Open Browser Keyword of Selenium2Library (robotframework) is giving: is not a supported browser.
- How to close and open browser
- Issues with IE close browser, Firefox window focus. unable to get screenshots any browser
- Selenium.SeleniumException : Failed to start new browser session: Error while launching browser
- how to open a browser in selenium web driver
Permissions in this forum:
You cannot reply to topics in this forum