[wtr-general] ie.close function of watir-1.6.5 version is not working fine after handling a pop-up
Hi, ie.close function of watir-1.6.5 version is not working fine after handling a pop-up but ie.close function of watir-1.6.2 is working fine after handling a pop-up. For more details please check source code of following :- C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.5\lib\watir\ie-class.rb C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie-class.rb Thanks Regards, Ankur Gera TCS -- 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
For benefit of others I am adding watir-general group as well. http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent If you see the standards for getting the text of body element i.e. using the function textContent, text should be returned by combining the text of all the elements that are child node of the element for which you want the text. Now for br element the text is empty string so it doesn't introduce a line break. Its not a bug in Firefox its as per the standards. In IE, we use innerText function which is not per the standard and it does introduce a line break when you get text. Issue is not which browser is following the standards and which is better, issue is both of them see's the things differently and return different text. - Angrez On Thu, Dec 31, 2009 at 2:20 PM, Krishna saradka krishna.sara...@gmail.comwrote: Dear Angrez, I'm little confused. Using a ,br. tag in html should break the line and move the follwoing text to the next line. Currently as per the original posted question on this thread, she is pointing out that the output of firewatir in this case is different. Which is instead of the line break it is introducing just a space. Where as while using IE [watir instead of firewatir] she is getting the desired result. While going over the below link, I understand that FF had a bug in it and it was not treating the br tag appropriately if the following text also continues in the same line in html code. This is observed while using textContext. Thanks Regards, KK On Thu, Dec 31, 2009 at 12:55 PM, Angrez Singh ang...@gmail.com wrote: 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.com wrote: Thanks Angrez. Rgds Pallavi. On Thu, Dec 31, 2009 at 11:18 AM, Angrez Singh ang...@gmail.comwrote: 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
Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir
Hmm... Ok Angrez, Thanks for looking into this issue, if there is any way we could make it similar kindly let me know. Would be grateful. Thanks Pallavi. On Thu, Dec 31, 2009 at 12:55 PM, Angrez Singh ang...@gmail.com wrote: 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 --
Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir
I agree with you Angrez, about seeing the same thing differently, but when we are coding in gem would it be a good idea to forcefully insert a line break or remove a line break when we are trying to fetch the text? so as to make the results similar for watir, firewatir and other browser version of watir? Is it this what you would do? Rgds Pallavi. On Thu, Dec 31, 2009 at 2:50 PM, Angrez Singh ang...@gmail.com wrote: For benefit of others I am adding watir-general group as well. http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent If you see the standards for getting the text of body element i.e. using the function textContent, text should be returned by combining the text of all the elements that are child node of the element for which you want the text. Now for br element the text is empty string so it doesn't introduce a line break. Its not a bug in Firefox its as per the standards. In IE, we use innerText function which is not per the standard and it does introduce a line break when you get text. Issue is not which browser is following the standards and which is better, issue is both of them see's the things differently and return different text. - Angrez On Thu, Dec 31, 2009 at 2:20 PM, Krishna saradka krishna.sara...@gmail.com wrote: Dear Angrez, I'm little confused. Using a ,br. tag in html should break the line and move the follwoing text to the next line. Currently as per the original posted question on this thread, she is pointing out that the output of firewatir in this case is different. Which is instead of the line break it is introducing just a space. Where as while using IE [watir instead of firewatir] she is getting the desired result. While going over the below link, I understand that FF had a bug in it and it was not treating the br tag appropriately if the following text also continues in the same line in html code. This is observed while using textContext. Thanks Regards, KK On Thu, Dec 31, 2009 at 12:55 PM, Angrez Singh ang...@gmail.com wrote: 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.com wrote: Thanks Angrez. Rgds Pallavi. On Thu, Dec 31, 2009 at 11:18 AM, Angrez Singh ang...@gmail.comwrote: 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
Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir
The thing is this even if I add line break for br tag while fetching text, it might still break somewhere else. So, let me see if something is possible to make then look similar. - Angrez On Thu, Dec 31, 2009 at 3:02 PM, Pallavi Sharma write2pall...@gmail.comwrote: I agree with you Angrez, about seeing the same thing differently, but when we are coding in gem would it be a good idea to forcefully insert a line break or remove a line break when we are trying to fetch the text? so as to make the results similar for watir, firewatir and other browser version of watir? Is it this what you would do? Rgds Pallavi. On Thu, Dec 31, 2009 at 2:50 PM, Angrez Singh ang...@gmail.com wrote: For benefit of others I am adding watir-general group as well. http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent If you see the standards for getting the text of body element i.e. using the function textContent, text should be returned by combining the text of all the elements that are child node of the element for which you want the text. Now for br element the text is empty string so it doesn't introduce a line break. Its not a bug in Firefox its as per the standards. In IE, we use innerText function which is not per the standard and it does introduce a line break when you get text. Issue is not which browser is following the standards and which is better, issue is both of them see's the things differently and return different text. - Angrez On Thu, Dec 31, 2009 at 2:20 PM, Krishna saradka krishna.sara...@gmail.com wrote: Dear Angrez, I'm little confused. Using a ,br. tag in html should break the line and move the follwoing text to the next line. Currently as per the original posted question on this thread, she is pointing out that the output of firewatir in this case is different. Which is instead of the line break it is introducing just a space. Where as while using IE [watir instead of firewatir] she is getting the desired result. While going over the below link, I understand that FF had a bug in it and it was not treating the br tag appropriately if the following text also continues in the same line in html code. This is observed while using textContext. Thanks Regards, KK On Thu, Dec 31, 2009 at 12:55 PM, Angrez Singh ang...@gmail.com wrote: 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.com wrote: Thanks Angrez. Rgds Pallavi. On Thu, Dec 31, 2009 at 11:18 AM, Angrez Singh ang...@gmail.comwrote: 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
Re: [wtr-general] ie.close function of watir-1.6.5 version is not working fine after handling a pop-up
Could you post your script and what you mean by not working? It's hard to diagnose anything without more details. -Charley On Thu, Dec 31, 2009 at 2:19 AM, Ankur Gera ankurg...@gmail.com wrote: Hi, ie.close function of watir-1.6.5 version is not working fine after handling a pop-up but ie.close function of watir-1.6.2 is working fine after handling a pop-up. For more details please check source code of following :- C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.5\lib\watir\ie-class.rb C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie-class.rb Thanks Regards, Ankur Gera TCS -- 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: Firefox JJSH for 64-bit Windows 7?
Just be aware that on anything above MSVC6 you will need to distribute the new C runtimes as well, since they link to those, and they're not included with base WinXP installs. This bit me when I was recompiling our custom windows ole lib. There are some interesting issues around manifest generation as well. -c On Tue, Dec 22, 2009 at 10:38 PM, Angrez Singh ang...@gmail.com wrote: Hi George, I think Visual Studio Express should work, see the section Microsoft Visual C++ (MSVC) in the following link: https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Windows_Prerequisites - Angrez On Wed, Dec 23, 2009 at 3:19 AM, George george.sand...@gmail.com wrote: Hi Angrez, It looks like I need Visual Studio to make the build. Can I use Visual Studio Express? -George On Dec 21, 12:03 am, Angrez Singh ang...@gmail.com wrote: You can also see this link: http://wiki.openqa.org/display/WTR/FireWatir+Installation there is a section for compiling JSSh along with the help links. - Angrez On Mon, Dec 21, 2009 at 1:31 PM, Angrez Singh ang...@gmail.com wrote: Use instructions provided here for setting up the pre requisites: https://developer.mozilla.org/En/Simple_Firefox_build use the following build options in your .mozconfig file: mk_add_options MOZ_CO_PROJECT=browser mk_add_options moz_objd...@topsrcdir@/firefox-jssh ac_add_options --enable-extensions=default,jssh,webservices ac_add_options --enable-application=browser - Angrez On Mon, Dec 21, 2009 at 1:14 PM, Yuping Zhong littlezhong...@gmail.comwrote: I want to compile Firefox in my Mac. Can you provide more info about that? Thanks. On Mon, Dec 21, 2009 at 3:38 PM, Angrez Singh ang...@gmail.com wrote: You need to compile Firefox with JSSh on 64 bit machine and then need to generate the XPI. If anyone is willing to compile Firefox on his/her machine let me know I can provide the links for the same. - Angrez On Sun, Dec 20, 2009 at 7:56 AM, Yuping Zhong littlezhong...@gmail.comwrote: Hi, Looks like Mac OS X 10.6.1 is also 64-bits, is JSSH missed for Snow Leopard??? Anyone can run the FireWatir in Snow Leopard? If so,how to do that? Many Thanks. -Zhong On Sun, Dec 20, 2009 at 8:47 AM, George george.sand...@gmail.com wrote: Hello there, I noticed that a JIRA ticket was opened for Linux missing a 64-bit JSSH extension (http://jira.openqa.org/browse/WTR-383), but will there also be one available for Windows? Thanks, George -- 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 -- You received this message because you are subscribed to the Google Groups Watir