[wtr-general] need help on how to close the new windows

2009-12-30 Thread Tester
i am running a watir script on a url. The script opens pdf documents in new windows. There are more that 100 pdf files on opening each in new window the window hangs and I am not able to run the entire script. Can some one help me out in this. Is there a method such as ie.close to close the new

Re: [wtr-general] need help on how to close the new windows

2009-12-30 Thread Željko Filipin
On Wed, Dec 30, 2009 at 10:13 AM, Tester joeni...@gmail.com wrote: Is there a method such as ie.close Yes. browser.close should close the browser. Quick overview of Watir methods: http://wiki.openqa.org/display/WTR/Cheat+Sheet Željko -- watir.com - community manager watirpodcast.com - host

Re: [wtr-general] need help on how to close the new windows

2009-12-30 Thread Prajakta Jadhav
u will need to get the handle of new browsers that are opening then execute browser.close for those browser windows if you are clicking some link/image which in turn opens your new browser window then you will have to use some 'getwindow' type of method to get the handle of that browser

Re: [wtr-general] need help on how to close the new windows

2009-12-30 Thread Prajakta Jadhav
If in case you are clicking on some link/image which in turn opens a new browser window then u ll need to get the handle of that new window first. Then u can execute browser.close on it. U ll need to attach the new window to a new watir browser instance. eg - ie2 = watir::IE.new ie2.attach(:url,

[wtr-general] Re: IE 8 Crashes

2009-12-30 Thread Jeff Savin
Hi Tiffany, Thanks so much for your post, all good ideas. I just wanted to follow-up. It seems that after rebooting the computer (a sure fix-all?), this problem went away. I don't know if I'll ever know the answer as to why this was happening, but its all good now. So, this will help me to

Fwd: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-30 Thread Pallavi Sharma
Hi Angrez Could you please give some time and help with this.. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Wed, Dec 30, 2009 at 9:21 AM Subject: Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir To:

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-30 Thread Krishna saradka
br by virtue should break the line and what you observe while running in ie is correct. May be that firewatir is not treating it that way. [I have not explored firewatir to that extent to confirm this] If you can tell us what exactly you are intend to do after getting the text then we can think

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-30 Thread Angrez Singh
I'll look into this issue. - Angrez On Thu, Dec 31, 2009 at 10:40 AM, Krishna saradka krishna.sara...@gmail.com wrote: br by virtue should break the line and what you observe while running in ie is correct. May be that firewatir is not treating it that way. [I have not explored firewatir to

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-30 Thread Pallavi Sharma
Thanks for the reply. Ideally i would have expected firewatir to behave the watir way and put a new line. I understand its not a clean way, and even we chose it after much deliberation as there was nothing much we could do with the page and text validation on it for comparisions. Would really

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-30 Thread Pallavi Sharma
Thanks Angrez. Rgds Pallavi. On Thu, Dec 31, 2009 at 11:18 AM, Angrez Singh ang...@gmail.com wrote: I'll look into this issue. - Angrez On Thu, Dec 31, 2009 at 10:40 AM, Krishna saradka krishna.sara...@gmail.com wrote: br by virtue should break the line and what you observe while

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-30 Thread Angrez Singh
Actually for your HTML code the result returned by Firewatir is as per the W3C standard. Check this link: https://bugzilla.mozilla.org/show_bug.cgi?id=316063 I am working on how we can actually make the results similar. - Angrez On Thu, Dec 31, 2009 at 11:26 AM, Pallavi Sharma