[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 browser window
getting opened from the main window in watir?

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


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

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

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

-Prajakta

On Wed, Dec 30, 2009 at 2:43 PM, Tester joeni...@gmail.com wrote:

 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 browser window
 getting opened from the main window in watir?

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

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, url of new browser window)
ie2.close



On Wed, Dec 30, 2009 at 2:43 PM, Tester joeni...@gmail.com wrote:

 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 browser window
 getting opened from the main window in watir?

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

[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 remember to always add rebooting the computer
to my troubleshooting bag of tricks. It was there, just didn't think
it applied in this case, lol.

Thanks again,

Jeff

On Dec 29, 6:07 pm, Tiffany Fodor tcfo...@comcast.net wrote:
 Hi Jeff!

 I haven't heard of this problem.  Can you provide any errors you're
 getting when the browser crashes?

 Have you verified that you can manually access the URL in an IE8
 browser on this system?  If so, have you tried stepping through
 opening a new browser and then going to the site through irb?  You
 could also try the same steps with a Firefox browser to narrow the
 problem down a bit.

 Hope this helps!

 -Tiffany

 On Dec 29, 9:51 am, Jeff Savin jeff.sa...@gmail.com wrote:

  Hi,

  I have a simple automation application built in Ruby 1.8.6 and Watir
  1.6.5.  The application takes control of the browser and goes through
  3 or 4 pages of an online website. It fills in a couple forms and
  pushes a few buttons, nothing fancy.

  This application works as tested on several computers, including XP
  and Vista, IE 7 and 8.  On one particular computer, Windows Vista Home
  Premium Edition SP2 and IE 8, the application successfully opens a new
  browser, but the second it sends an automation command (browser.goto),
  IE8 crashes.  This happens each and every time and I'm wondering if
  anyone else has had the same experience.

  Thanks,
  Jeff

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


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: watir-general@googlegroups.com


Hi

My code looks like this:

Say the input is:

h1 hello br bye br /h1

Now if you do from watir saying

puts ie.text

it will print

hello
bye

so text is seperated by new line

but with firewatir

ff.text

output is:

hello bye

separated by space.

So thats my problem. As the delimiter used by watir and firewatir is not
same, i cannot simply run my same watir scripts in fire watir.

Any solution or feedback on it...

Regards
Pallavi.


On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.com wrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar problem
  arises;
 
  for watir if there is br tag then with the test a new line appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into firewatir
 due
  to this behaviour as the split fails on the output of this method .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

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 of some workaround until we get clarity on the above.

If you are comparing the string to arrive at some decision then for the time
being try making it compare depending on whether it is ie or ff. Though this
is not a clean way of doing the things.

Thanks  regards,
KK

On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma write2pall...@gmail.comwrote:

 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: watir-general@googlegroups.com


 Hi

 My code looks like this:

 Say the input is:

 h1 hello br bye br /h1

 Now if you do from watir saying

 puts ie.text

 it will print

 hello
 bye

 so text is seperated by new line

 but with firewatir

 ff.text

 output is:

 hello bye

 separated by space.

 So thats my problem. As the delimiter used by watir and firewatir is not
 same, i cannot simply run my same watir scripts in fire watir.

 Any solution or feedback on it...

 Regards
 Pallavi.


 On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.com wrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar problem
  arises;
 
  for watir if there is br tag then with the test a new line appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into firewatir
 due
  to this behaviour as the split fails on the output of this method .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general



   --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

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 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 of some workaround until we get clarity on the above.

 If you are comparing the string to arrive at some decision then for the
 time being try making it compare depending on whether it is ie or ff. Though
 this is not a clean way of doing the things.

 Thanks  regards,
 KK

 On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma 
 write2pall...@gmail.comwrote:

 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: watir-general@googlegroups.com


 Hi

 My code looks like this:

 Say the input is:

 h1 hello br bye br /h1

 Now if you do from watir saying

 puts ie.text

 it will print

 hello
 bye

 so text is seperated by new line

 but with firewatir

 ff.text

 output is:

 hello bye

 separated by space.

 So thats my problem. As the delimiter used by watir and firewatir is not
 same, i cannot simply run my same watir scripts in fire watir.

 Any solution or feedback on it...

 Regards
 Pallavi.


 On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.com wrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar
 problem
  arises;
 
  for watir if there is br tag then with the test a new line appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into
 firewatir due
  to this behaviour as the split fails on the output of this method .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general



--
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

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 appreciate if someone using Firewatir could get back and help
me with this.

Rgds

Pallavi.

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 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 of some workaround until we get clarity on the above.

 If you are comparing the string to arrive at some decision then for the
 time being try making it compare depending on whether it is ie or ff. Though
 this is not a clean way of doing the things.

 Thanks  regards,
 KK

 On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma 
 write2pall...@gmail.comwrote:

 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: watir-general@googlegroups.com


 Hi

 My code looks like this:

 Say the input is:

 h1 hello br bye br /h1

 Now if you do from watir saying

 puts ie.text

 it will print

 hello
 bye

 so text is seperated by new line

 but with firewatir

 ff.text

 output is:

 hello bye

 separated by space.

 So thats my problem. As the delimiter used by watir and firewatir is not
 same, i cannot simply run my same watir scripts in fire watir.

 Any solution or feedback on it...

 Regards
 Pallavi.


 On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.com wrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar
 problem
  arises;
 
  for watir if there is br tag then with the test a new line appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into
 firewatir due
  to this behaviour as the split fails on the output of this method .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general



   --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

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 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 of some workaround until we get clarity on the above.

 If you are comparing the string to arrive at some decision then for the
 time being try making it compare depending on whether it is ie or ff. Though
 this is not a clean way of doing the things.

 Thanks  regards,
 KK

 On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma write2pall...@gmail.com
  wrote:

 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: watir-general@googlegroups.com


 Hi

 My code looks like this:

 Say the input is:

 h1 hello br bye br /h1

 Now if you do from watir saying

 puts ie.text

 it will print

 hello
 bye

 so text is seperated by new line

 but with firewatir

 ff.text

 output is:

 hello bye

 separated by space.

 So thats my problem. As the delimiter used by watir and firewatir is not
 same, i cannot simply run my same watir scripts in fire watir.

 Any solution or feedback on it...

 Regards
 Pallavi.


 On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.comwrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar
 problem
  arises;
 
  for watir if there is br tag then with the test a new line appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into
 firewatir due
  to this behaviour as the split fails on the output of this method .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

  --
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general



--
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

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 write2pall...@gmail.comwrote:

 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 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 of some workaround until we get clarity on the above.

 If you are comparing the string to arrive at some decision then for the
 time being try making it compare depending on whether it is ie or ff. Though
 this is not a clean way of doing the things.

 Thanks  regards,
 KK

 On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma 
 write2pall...@gmail.com wrote:

 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: watir-general@googlegroups.com


 Hi

 My code looks like this:

 Say the input is:

 h1 hello br bye br /h1

 Now if you do from watir saying

 puts ie.text

 it will print

 hello
 bye

 so text is seperated by new line

 but with firewatir

 ff.text

 output is:

 hello bye

 separated by space.

 So thats my problem. As the delimiter used by watir and firewatir is not
 same, i cannot simply run my same watir scripts in fire watir.

 Any solution or feedback on it...

 Regards
 Pallavi.


 On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.comwrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar
 problem
  arises;
 
  for watir if there is br tag then with the test a new line appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into
 firewatir due
  to this behaviour as the split fails on the output of this method .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

  --
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general



--
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


  --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines: