[wtr-general] Re: thinking about automation frameworks/harnesses
I can imagine why you want to separate the test data from the test script, but mixing it with the object data makes it confusing in my opinion. It would be better to separate both the test data and the object data to start with. Cheers, John On Apr 28, 2:45 am, Wesley Chen cjq@gmail.com wrote: That maybe a frame, but I think it is not housed well enough. Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 12:33 AM, Chris christopher.mcma...@gmail.comwrote: ate it if you let me know. --~--~-~--~~~---~--~~ 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] How to merge self.method into another module?
Hi, guys, If I have two modules, there is one method in each of it: module Test1 def self.hello1 end end module Test2 def self.hello2 end end Can I make the method *hello1 *as a method of module Test2? So that, I can use *Test2.hello1* ? Any suggestion would be quite appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ 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: Using RJB to send XML file to Weblogic JMS
On Sat, Apr 25, 2009 at 14:30, SANTOSH SOLAPURKAR sansolapur...@gmail.com wrote: I had posted this topic but did not receive any response earlier, so here i go again. Maybe it is only my ignorance, but is this at all related to Watir? You are aware this is Watir group? Maybe that is the reason you did not get any replies so far. Maybe you will have more luck if you post it to related forum/mailing list. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: Finding Someone Special With an Online Dating Service
On Tue, Apr 28, 2009 at 04:02, George george.sand...@gmail.com wrote: Ooo, a spammer! Does this mean we're a legitimate mailing list now? We actually get a lot of spam, but moderators of the group delete it. Looks like this one had some luck. :) Željko --~--~-~--~~~---~--~~ 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: How to use the Watir::SelectList methods?
On Tue, Apr 28, 2009 at 07:55, Wesley Chen cjq@gmail.com wrote: How to use the select list methods on page: http://wiki.openqa.org/display/WTR/Selection+Boxes Any limitations to use the great methods? I did not understand this. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: How to merge self.method into another module?
http://www.ruby-doc.org/core/classes/Module.html Instance methods appear as methods in a class when the module is included, module methods do not. module A def self.m1 puts m1 end end A.m1 = m1 module B A.m1 end = m1 What are you trying to do? Željko --~--~-~--~~~---~--~~ 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: How to use the Watir::SelectList methods?
For some reason options method is not there anymore and docs aren't updated. There is method getAllContents, but I didn't like this camelCase method name, so I patched it: class Watir::SelectList alias :options :getAllContents end On Apr 28, 12:21 pm, Wesley Chen cjq@gmail.com wrote: Hi, Zeljko, I know this kind of select_list use. But please turn to the addresshttp://wtr.rubyforge.org/rdoc/classes/Watir/SelectList.html Then use the methods like *options* on the page. When I use put $ie.select_list(:name,//).*options* I get undefined method error messages. So, do you know why? Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 5:16 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Apr 28, 2009 at 07:55, Wesley Chen cjq@gmail.com wrote: How to use the select list methods on page: http://wiki.openqa.org/display/WTR/Selection+Boxes Any limitations to use the great methods? I did not understand this. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: How to merge self.method into another module?
On Tue, Apr 28, 2009 at 12:54, Wesley Chen cjq@gmail.com wrote: So, do you understand what I am saying? Not a word. :) Why are you doing module A def self.hello1 end end instead of module A def hello1 end end Željko --~--~-~--~~~---~--~~ 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: How to use the Watir::SelectList methods?
Thank you, Jarmo, I have the same thought as you. After all, spelling 'options' is much easier than 'getAllContents' For now, I think I have to stil use the old select_list methods, :), Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 6:26 PM, Jarmo Pertman jarm...@gmail.com wrote: For some reason options method is not there anymore and docs aren't updated. There is method getAllContents, but I didn't like this camelCase method name, so I patched it: class Watir::SelectList alias :options :getAllContents end On Apr 28, 12:21 pm, Wesley Chen cjq@gmail.com wrote: Hi, Zeljko, I know this kind of select_list use. But please turn to the addresshttp:// wtr.rubyforge.org/rdoc/classes/Watir/SelectList.html Then use the methods like *options* on the page. When I use put $ie.select_list(:name,//).*options* I get undefined method error messages. So, do you know why? Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 5:16 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Apr 28, 2009 at 07:55, Wesley Chen cjq@gmail.com wrote: How to use the select list methods on page: http://wiki.openqa.org/display/WTR/Selection+Boxes Any limitations to use the great methods? I did not understand this. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: How to use the Watir::SelectList methods?
Hi, Zeljko, I know this kind of select_list use. But please turn to the address http://wtr.rubyforge.org/rdoc/classes/Watir/SelectList.html Then use the methods like *options* on the page. When I use put $ie.select_list(:name,//).*options* I get undefined method error messages. So, do you know why? Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 5:16 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Apr 28, 2009 at 07:55, Wesley Chen cjq@gmail.com wrote: How to use the select list methods on page: http://wiki.openqa.org/display/WTR/Selection+Boxes Any limitations to use the great methods? I did not understand this. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: How to merge self.method into another module?
On Tue, Apr 28, 2009 at 09:17, Wesley Chen cjq@gmail.com wrote: Can I make the method hello1 as a method of module Test2? Try this: module Test2 include Test1 end Željko --~--~-~--~~~---~--~~ 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: Attach to changing URL
After reading more docs online I was able to learn about regular expressions in Watir. I'm happily attaching to my browser even though the a portion of the URL is constantly changing. Thanks to all for you help! Thanks, Bobby On Apr 24, 2:56 pm, Bret Pettichord b...@pettichord.com wrote: bobwashing...@hotmail.com wrote: I thought about this some a little more and I think I get what you are saying. However I need a way to get at the browser window before I can capture theurl. Is there a way for Watir to give me a list of all browser sessions current open. Then couldn't I do something like browser.urlto get theurlfrom the browser window of interest? Watir::IE.each will iterate through the existing browser windows. Bret -- Bret Pettichord CTO, WatirCraft LLC,www.watircraft.com Lead Developer, Watir,www.watir.com Blog,www.io.com/~wazmo/blog Twitter,www.twitter.com/bpettichord Ask me about Watir trainingwww.watircraft.com/training --~--~-~--~~~---~--~~ 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: How to merge self.method into another module?
Hi, Zeljko, I would like to use the style: *module_name.method_name *(rather than *include module_name*, then use *method_name* directly) Suppose I have two modules. First is module A def self.hello1 end def self.hello2 end ... def self.hello100 end end Second is module B def self.hello50 end def self.hello51 end .. def self.hello150 end end *module A* has no big relationship with *module B*, they have 50 same methods, but they have no common attributes, so I don't want to write them into *class *inherit. I would like to write the 50 same methods into another module *C*. Then, module A and module B can use the 50 same methods by style: A.common_methods, B.common_methods. I have to use the method invoke style: *module_name.method_name *(rather than *include module_name*, then use *method_name* directly) So, do you understand what I am saying? Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 6:18 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: http://www.ruby-doc.org/core/classes/Module.html Instance methods appear as methods in a class when the module is included, module methods do not. module A def self.m1 puts m1 end end A.m1 = m1 module B A.m1 end = m1 What are you trying to do? Željko --~--~-~--~~~---~--~~ 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: jssh error - Watir::Exception::UnableToStartJSShException
Hi All, Even i am finding the same error. i tried to setup my environment many times but still i am facing this issue. Any help will be appreciated Regards, Kiran Y On Apr 28, 10:37 am, emz452 emz...@gmail.com wrote: Just an update - I didn't end up working from home today, so didn't get a chance to test those things out. However, I had to re-install / setup everything on a different computer (again) at the new office and it's all working perfectly! Once I try out faejon's suggestions, if they don't work, I think I'll setup my environment from scratch again and see if that fixes it! thanks all :) On Apr 24, 5:46 pm, emz452 emz...@gmail.com wrote: Thanks for the suggestions faejon, I'll try these things and let you know how I go (long weekend where I am, so Tuesday will be the next working day for me!) Angrez - Yep, I have sudo/admin rights and can start firefox with sudo. On Apr 24, 4:08 pm, Angrez Singh ang...@gmail.com wrote: I think jssh is not installed properly, do you have admin rights? or can you start Firefox -jssh with sudo command? - Angrez On Fri, Apr 24, 2009 at 8:04 AM, faejon fae...@gmail.com wrote: On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote: Hi there, ~~~ SNIP ~~~ If I launch firefox with -jssh and try to telnet: em...@emily-desktop:~$ firefox -jssh em...@emily-desktop:~$ telnet localhost 9997 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused em...@emily-desktop:~$ ~~~ SNIP ~~~ Many thanks, Emily Emily the above telnet test indicates that you are unable to communicate with your local machine on port 9997. I would check your firewall / ipchains settings and make sure that you are not blocking connections from 127.0.0.1 - 127.0.0.1. I would think that it would be allowed but you never know. You could also try disabling the firewall on your machine and then telnet to port 9997 while firefox is running to make certain if it is the firewall or not. --~--~-~--~~~---~--~~ 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: jssh error - Watir::Exception::UnableToStartJSShException
which OS firefox version are you using? - Angrez On Tue, Apr 28, 2009 at 6:24 PM, Kinnu kiranyajaman...@gmail.com wrote: Hi All, Even i am finding the same error. i tried to setup my environment many times but still i am facing this issue. Any help will be appreciated Regards, Kiran Y On Apr 28, 10:37 am, emz452 emz...@gmail.com wrote: Just an update - I didn't end up working from home today, so didn't get a chance to test those things out. However, I had to re-install / setup everything on a different computer (again) at the new office and it's all working perfectly! Once I try out faejon's suggestions, if they don't work, I think I'll setup my environment from scratch again and see if that fixes it! thanks all :) On Apr 24, 5:46 pm, emz452 emz...@gmail.com wrote: Thanks for the suggestions faejon, I'll try these things and let you know how I go (long weekend where I am, so Tuesday will be the next working day for me!) Angrez - Yep, I have sudo/admin rights and can start firefox with sudo. On Apr 24, 4:08 pm, Angrez Singh ang...@gmail.com wrote: I think jssh is not installed properly, do you have admin rights? or can you start Firefox -jssh with sudo command? - Angrez On Fri, Apr 24, 2009 at 8:04 AM, faejon fae...@gmail.com wrote: On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote: Hi there, ~~~ SNIP ~~~ If I launch firefox with -jssh and try to telnet: em...@emily-desktop:~$ firefox -jssh em...@emily-desktop:~$ telnet localhost 9997 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused em...@emily-desktop:~$ ~~~ SNIP ~~~ Many thanks, Emily Emily the above telnet test indicates that you are unable to communicate with your local machine on port 9997. I would check your firewall / ipchains settings and make sure that you are not blocking connections from 127.0.0.1 - 127.0.0.1. I would think that it would be allowed but you never know. You could also try disabling the firewall on your machine and then telnet to port 9997 while firefox is running to make certain if it is the firewall or not. --~--~-~--~~~---~--~~ 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: jssh error - Watir::Exception::UnableToStartJSShException
I am using XPSP2 anf Firefox 3.0.8 version -Kiran Y On Tue, Apr 28, 2009 at 6:50 PM, Angrez Singh ang...@gmail.com wrote: which OS firefox version are you using? - Angrez On Tue, Apr 28, 2009 at 6:24 PM, Kinnu kiranyajaman...@gmail.com wrote: Hi All, Even i am finding the same error. i tried to setup my environment many times but still i am facing this issue. Any help will be appreciated Regards, Kiran Y On Apr 28, 10:37 am, emz452 emz...@gmail.com wrote: Just an update - I didn't end up working from home today, so didn't get a chance to test those things out. However, I had to re-install / setup everything on a different computer (again) at the new office and it's all working perfectly! Once I try out faejon's suggestions, if they don't work, I think I'll setup my environment from scratch again and see if that fixes it! thanks all :) On Apr 24, 5:46 pm, emz452 emz...@gmail.com wrote: Thanks for the suggestions faejon, I'll try these things and let you know how I go (long weekend where I am, so Tuesday will be the next working day for me!) Angrez - Yep, I have sudo/admin rights and can start firefox with sudo. On Apr 24, 4:08 pm, Angrez Singh ang...@gmail.com wrote: I think jssh is not installed properly, do you have admin rights? or can you start Firefox -jssh with sudo command? - Angrez On Fri, Apr 24, 2009 at 8:04 AM, faejon fae...@gmail.com wrote: On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote: Hi there, ~~~ SNIP ~~~ If I launch firefox with -jssh and try to telnet: em...@emily-desktop:~$ firefox -jssh em...@emily-desktop:~$ telnet localhost 9997 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused em...@emily-desktop:~$ ~~~ SNIP ~~~ Many thanks, Emily Emily the above telnet test indicates that you are unable to communicate with your local machine on port 9997. I would check your firewall / ipchains settings and make sure that you are not blocking connections from 127.0.0.1 - 127.0.0.1. I would think that it would be allowed but you never know. You could also try disabling the firewall on your machine and then telnet to port 9997 while firefox is running to make certain if it is the firewall or not. --~--~-~--~~~---~--~~ 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] The return of WTR-155 :)
Hello, I have recently installed Ruby 1.8.6-26 and Watir 1.6.2 on a Windows 2000 machine at work and when I tried to run a simple script that attaches to an existing window, but I faced the same problem from 2 years ago: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:241:in `method_ missing': Windows (WIN32OLERuntimeError) OLE error code:80040154 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/ lib/watir/ie-class.rb:241:in `each' Notice that the problem occurs with ie-class.rb instead of watir.rb. The same workaround submitted 2 years ago to http://jira.openqa.org/browse/WTR-155 did the trick again. By the way, I'm not being able to post to the OpenQA forums, so excuse me if this is not the right place to post Thanks and regards, FK --~--~-~--~~~---~--~~ 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: thinking about automation frameworks/harnesses
On Apr 28, 12:13 am, JArkelen johnvanarke...@gmail.com wrote: I can imagine why you want to separate the test data from the test script, but mixing it with the object data makes it confusing in my opinion. It would be better to separate both the test data and the object data to start with. Probably so. Want to refactor it and put it in a comment? -Chris --~--~-~--~~~---~--~~ 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: thinking about automation frameworks/harnesses
No, I have my own framework/directory structure for my tests and I'm perfectly happy with it. On Apr 28, 4:36 pm, Chris McMahon christopher.mcma...@gmail.com wrote: On Apr 28, 12:13 am, JArkelen johnvanarke...@gmail.com wrote: I can imagine why you want to separate the test data from the test script, but mixing it with the object data makes it confusing in my opinion. It would be better to separate both the test data and the object data to start with. Probably so. Want to refactor it and put it in a comment? -Chris --~--~-~--~~~---~--~~ 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: jssh error - Watir::Exception::UnableToStartJSShException
I use windows xpsp2 and it works fine. Which JSSH XPI are you using? and are you installing it with admin rights? - Angrez On Tue, Apr 28, 2009 at 6:57 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: I am using XPSP2 anf Firefox 3.0.8 version -Kiran Y On Tue, Apr 28, 2009 at 6:50 PM, Angrez Singh ang...@gmail.com wrote: which OS firefox version are you using? - Angrez On Tue, Apr 28, 2009 at 6:24 PM, Kinnu kiranyajaman...@gmail.com wrote: Hi All, Even i am finding the same error. i tried to setup my environment many times but still i am facing this issue. Any help will be appreciated Regards, Kiran Y On Apr 28, 10:37 am, emz452 emz...@gmail.com wrote: Just an update - I didn't end up working from home today, so didn't get a chance to test those things out. However, I had to re-install / setup everything on a different computer (again) at the new office and it's all working perfectly! Once I try out faejon's suggestions, if they don't work, I think I'll setup my environment from scratch again and see if that fixes it! thanks all :) On Apr 24, 5:46 pm, emz452 emz...@gmail.com wrote: Thanks for the suggestions faejon, I'll try these things and let you know how I go (long weekend where I am, so Tuesday will be the next working day for me!) Angrez - Yep, I have sudo/admin rights and can start firefox with sudo. On Apr 24, 4:08 pm, Angrez Singh ang...@gmail.com wrote: I think jssh is not installed properly, do you have admin rights? or can you start Firefox -jssh with sudo command? - Angrez On Fri, Apr 24, 2009 at 8:04 AM, faejon fae...@gmail.com wrote: On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote: Hi there, ~~~ SNIP ~~~ If I launch firefox with -jssh and try to telnet: em...@emily-desktop:~$ firefox -jssh em...@emily-desktop:~$ telnet localhost 9997 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused em...@emily-desktop:~$ ~~~ SNIP ~~~ Many thanks, Emily Emily the above telnet test indicates that you are unable to communicate with your local machine on port 9997. I would check your firewall / ipchains settings and make sure that you are not blocking connections from 127.0.0.1 - 127.0.0.1. I would think that it would be allowed but you never know. You could also try disabling the firewall on your machine and then telnet to port 9997 while firefox is running to make certain if it is the firewall or not. --~--~-~--~~~---~--~~ 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: Rescue
The actual resolution is (drum-roll, please): rescue some code self.exit end Thanks to all who helped! On Apr 27, 3:27 pm, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: You hit the nail on the head, thanks, Adam! I tried using 'break', but the ruby syntax didn't like seeing the 'break' before 'end'. Thanks! On Apr 27, 2:39 pm, AR reed.a...@gmail.com wrote: Just to make sure I understand, let's lay out a basic rescue. -- code -- begin assertion actions if assertion passes rescue actions if assertion failed end #rescue block -- unrelated actions/functions here -- It sounds like you want the rescue to force the program to end safely rather than crash with an error. In that case: begin assertion puts passed rescue puts failed exit #(I don't have my code in front of me but I believe it is 'exit' or 'quit', which will terminate the ruby program) end #rescue block I've used this type of block to ensure that a data file was present before the test ran. If it was not present, it would tell the user and exit the script immediately. Am I warm? Thanks, Adam On Apr 27, 1:47 pm, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: Alex, It's not that I don't want the code to run, at all, but only if it successfully binds/attaches to the browser. My issue is that it's rescueing the error, but not halting after the rescue; it continues to the next line of code. If I know it's going to fail, and I want the code to terminate, after the rescue, how can I implement it? If I put a 'break' in there, the ruby syntax throws an error/warning about it. As is evident, by the attached Command Line output, the code continues to run - after the rescue is invoked. How can I stop that!? Thanks! John On Apr 26, 3:20 am, Alex Collins a.j.collins...@gmail.com wrote: John, Asking the obvious, if you don't want the code to run, why not remove it or comment it out? I'm not entirely sure what you are after, so a general response which I hope may still be useful. Firstly, the protected code block has the structure: begin expr.. [rescue [error_type,..] expr..].. [else expr..] [ensure expr..] end In this, the end statement ends the block. It does not stop the program running. In this case, the end statement after your puts 'please login..' line closes the begin block. To stop the program / script running, call the 'exit' method. Alternatively, if you want to build in behaviour around the lack of a browser, you could always use an if-block: if browser # do stuff when you have a browser else # do stuff when you have no browser (browser = nil) end Alex On 26 Apr 2009, at 07:01, «°¤§ømåtïçCðrp§ë¤°» wrote: I'm running a script, which has a rescue clause, but I want it to (essentially) break, when the rescue clause is invoked. Instead, it runs to the next line: C:\Documents and Settings\Marissa\Desktopruby T3.rb What is the user's First Name? Test What is the user's Last Name? Test ALERT: You must have a running instance of SVC open! Please log into SVC and restart Sevin. Exiting: Code1. T3.rb:18: undefined method `frame' for nil:NilClass (NoMethodError) To state the obvious: The frame it's looking for is not going to be there, so I don't even want it to go there. [Code] require 'watir' puts What is the user's First Name? Fname = gets.chomp #Removes return (recognized as new line command) character '\n' puts What is the user's Last Name? Lname = gets.chomp #Removes return (recognized as new line command) character '\n' begin �...@browser = Watir::IE.attach(:url, 'https:// www.servicecenterweb.unisys.com/sc2/index.do') rescue Watir::Exception::NoMatchingWindowFoundException puts ALERT: You must have a running instance of SVC open! �...@browser1 = Watir::IE.new �...@browser1.goto('https://www.servicecenterweb.unisys.com/sc2/ index.do') puts Please log into SVC and restart Sevin. Exiting: Code1. end �...@browser.frame(:id, 'detail').button(:id, 'X8').click #Insert company name and user �...@browser.frame(:id, 'detail').text_field(:id, 'X7').set(BAXTER) �...@browser.frame(:id, 'detail').text_field(:id, 'X78').set(Fname) �...@browser.frame(:id, 'detail').text_field(:id, 'X80').set(Lname) [/Code] If I put a 'break' in the rescue clause, it doesn't seem to like it, and 'end' really doesn't end, as you can see. So, is there a way I can ditch the script, if the rescue is invoked, or will I just have to deal with it going on to the next line? Thanks!- Hide quoted
[wtr-general] Re: Unable to click on Tabs
I'm a no0b, when it comes to things like this, but if the tabs exist in frames, then you can use the id to drill down to the section you want. i.e.: browser.frame(:id, tabs).button(:id, tab1).click Using this method, you don't need to explicity call out the onClick or onFire methods. Given that I can't, currently, view the entire source of the page, I would suggest using something like: browser.button(:id, ext-comp-1002__ext-comp-1006).click Granted, I know they aren't buttons; I'm just using sample code to illustrate how you could fire off an event, without explicitly using an assertion to call on the event. On Apr 28, 5:06 am, Vishal bvkon...@gmail.com wrote: I checked few other discussions on similar issues. But in none of them there is a solution available. Is this Issue can't be fixed? On Apr 27, 12:29 pm, Shweta nagman...@gmail.com wrote: Hi I tried like this,But it does not clicks on tab,I need to click here on Selection tab,Can anyone suggest me the solution for this. ie.cell(:class,tab).image(:src,../images/tabBetween.jpg).click HTML Code: TR TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ quoteShellValidationAction.do?dispatch=ShellInfo'); CLASS=tabSelectednbsp;nbsp;nbsp;nbsp; Infonbsp;nbsp;nbsp;nbsp;/TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=CarrierInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Selectionnbsp;nbsp;nbsp;nbsp;/ TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=ShellCoverageInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Quote Coveragenbsp;nbsp;nbsp;nbsp;/TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=ShellProducerInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Producernbsp;nbsp;nbsp;nbsp;/ TD TD width = 99%IMG SRC=../images/tabBetween.jpg BORDER=0/TD /TR TR On Apr 27, 12:09 pm, Vishal bvkon...@gmail.com wrote: I asked the developers, we checked the in websitehttp://extjs.com/deploy/dev/docs/ documents onTabpanel. We think following event is fired i)activate : ( Ext.Panel p ) Fires after the Panel has been visually activated. Note that Panels do not directly support being activated, but some... Fires after the Panel has been visually activated. Note that Panels do not directly support being activated, but some Panel subclasses do (like Ext.Window). Panels which are child Components of a TabPanel fire the activate and deactivate events under the control of the TabPanel. Listeners will be called with the following arguments: * p : Ext.Panel The Panel that has been activated. ii)beforetabchange : ( TabPanel this, Panel newTab, Panel currentTab ) Fires before the activetabchanges. Handlers can return false to cancel thetabchange. Fires before the activetabchanges. Handlers can return false to cancel thetabchange. Listeners will be called with the following arguments: * this : TabPanel * newTab : Panel Thetabbeing activated * currentTab : Panel The current activetab When we implement this in our code $ie.span(:text ,Documents).span(:index,1).fire_event(activate) I get an exception D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:257:in `method_m issing': fireEvent (WIN32OLERuntimeError) OLE error code:80070057 in htmlfile Invalid argument. I guess there is no such Event, thats why I am getting this message. Let me know if we test do this in a different way. On Apr 24, 5:55 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 24, 2009 at 14:53, Vishal bvkon...@gmail.com wrote: Do you have any other suggestions? Ask your developer(s) are they sure that onclick is fired. If the answer is yes, show them how your code can opentabwhen firing that event. Željko- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: how do i check ads/images present on the web page and loading fine
I'm still, pretty much a no0b, but could these examples help!? @browser.frame(:id, 'detail').text.should include(something here) @browser.frame(:id, '/adsonar_serve/').contains(some constant) For the constantly changing frames, the only suggestion I can give, is to include rescues for frames failing to load. I'm sure there's a way to do that, and it would be the preferred route to go, since your frames are dynamic. Sorry I couldn't be of more help other than that :-p On Apr 27, 11:26 pm, yogesh khandelwal er.yogeshkhandel...@gmail.com wrote: okie..i'll try. Do we still have ie.frame.html method with watir1.6.2 or it's removed? Thanks for your help Thanks, Yogesh On Tue, Apr 28, 2009 at 9:44 AM, Paul Rogers paul.rog...@shaw.ca wrote: you'll have to get the top level url using net/http and parse that. I dont think you'll do it easily with watir other wise Paul On Mon, Apr 27, 2009 at 10:11 PM, yogesh khandelwal er.yogeshkhandel...@gmail.com wrote: how do i get the url of the iframe? if you can tell me how we can get the url than i can parse it using net/htpp. Also for flash,.click() method doesnot work. Thanks, Yogesh On Tue, Apr 28, 2009 at 9:29 AM, Paul Rogers paul.rog...@shaw.ca wrote: if the iframes are in different domains you will struggle to access the contents of the iframe. Its a secrity thing in the browser. Can you get the main page with net/http and then parse that for the urls of the iframes and then open these individually in watir? Paul On Mon, Apr 27, 2009 at 9:46 PM, yogesh khandelwal er.yogeshkhandel...@gmail.com wrote: yeah i tried with valid html but i think watir1.6.2 is not supporting iframe.html method,i want to check the magic no of the ads and if we click on the ad,it should take as to right page.. [If you want to see if the ad functions correctly, maybe loading it into its own page outside of the iframe is the best solution. Especially if they are flash] i tried this also, but not able to get the src of the ads,it's in iframe ..here is the code ,what i've tried. def test_ad adFrame = ie.frame(:id,/adsonar_serve/) #puts '-' #puts adFrame.html #puts '-' if adFrame == nil verify(adFrame!=nil, 'ad test failed, could not locate ad frame') else html = adFrame.html pos1 = html.index(BODY) pos2 = html.index(/BODY) substring = html[pos1..pos2] #puts substring.length verify(substring.length 100, 'ad test failed, could not locate ad on main page') end#end else end end Yogesh On Tue, Apr 28, 2009 at 9:08 AM, Paul Rogers paul.rog...@shaw.cawrote: so what are you trying to test? The ads show up? the ads function correctly? The impression count gets incremented correctly? If you only want to see if the ad shows up, just check the iframe has some valid html If you want to see if the ad functions correctly, maybe loading it into its own page outside of the iframe is the best solution. Especially if they are flash Paul On Mon, Apr 27, 2009 at 9:25 PM, yogesh khandelwal er.yogeshkhandel...@gmail.com wrote: yeah...ads are in iframe...flash is having embed id..don't know how to deal with that..i installed flash-watir also but not able to get the expected result On Tue, Apr 28, 2009 at 8:28 AM, Paul Rogers paul.rog...@shaw.cawrote: are the ads: images flash in a div in an iframe ? kind of difficult to help you with this one. Paul On Mon, Apr 27, 2009 at 8:35 PM, yogesh er.yogeshkhandel...@gmail.com wrote: yeah..i read that...sorry for the little information.. I need to check all the advertisement/images present on the page.Do we have anything ,any method in watir/ruby by which i can verify this. For image loading,we have image.hasloaded?.. On Apr 28, 7:19 am, Anna Gabutero a...@lavabit.com wrote: Hi Yogesh, Try reading:http://wiki.openqa.org/display/WTR/Support On Mon, Apr 27, 2009 at 05:52:52AM -0700, yogesh wrote: I need to check all the ads/images present on the webpage.They all are coming from different locations,need to verify ,all images are loading fine,no 404/302 error, also need to check the magic no is coming correctly for that image. you can usehttp://fanhouse.comasa input url. Thanks, Yogesh ____ Use the link below to report this message as spam. https://lavabit.com/apps/teacher?sig=561613key=3600820026 ____ -- Thanks, Yogesh Khandelwal AOL Online India Pvt. Ltd. +919886993776 -- Thanks, Yogesh Khandelwal AOL Online India Pvt. Ltd. +919886993776 -- Thanks, Yogesh Khandelwal AOL Online India Pvt. Ltd. +919886993776 -- Thanks, Yogesh
[wtr-general] Rescue [Nested?]
Can I nest rescues, like one can (normally) nest if statements? For example: #Validates text that should exist on the page. @browser.text.should include?(COMPANY INFORMATION) #Rescues text not found, by refreshing the page rescue Watir::Exception::NoMatchingTextFoundException @browser.refresh @browser.text.should include?(COMPANY INFORMATION) rescue Watir::Exception::NoMatchingTextFoundException puts SVC failed to load the page. Exiting: Code2. end end Does using rescue syntax like this work, or no? --~--~-~--~~~---~--~~ 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: Rescue [Nested?]
I suppose you could, but the smarter thing would be to wait until a certain element exists, using Watir's wait_until. http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F wait_until should by default poll for a given condition every .2 seconds up until 60 seconds. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Apr 28, 2009 at 11:46 AM, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: Can I nest rescues, like one can (normally) nest if statements? For example: #Validates text that should exist on the page. @browser.text.should include?(COMPANY INFORMATION) #Rescues text not found, by refreshing the page rescue Watir::Exception::NoMatchingTextFoundException @browser.refresh @browser.text.should include?(COMPANY INFORMATION) rescue Watir::Exception::NoMatchingTextFoundException puts SVC failed to load the page. Exiting: Code2. end end Does using rescue syntax like this work, or no? --~--~-~--~~~---~--~~ 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: Rescue [Nested?]
Thanks! I wanted to ensure, though, that if the element didn't exist, that I caught the exception, refreshed the page and the caused the script to exit, if the element still did not produce. (i.e.: if the web-server is down, neither the rescue nor wait until will work). On Apr 28, 12:59 pm, Charley Baker charley.ba...@gmail.com wrote: I suppose you could, but the smarter thing would be to wait until a certain element exists, using Watir's wait_until. http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissues... wait_until should by default poll for a given condition every .2 seconds up until 60 seconds. Charley Baker blog:http://blog.charleybaker.org/ Lead Developer, Watir,http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Apr 28, 2009 at 11:46 AM, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: Can I nest rescues, like one can (normally) nest if statements? For example: #Validates text that should exist on the page. @browser.text.should include?(COMPANY INFORMATION) #Rescues text not found, by refreshing the page rescue Watir::Exception::NoMatchingTextFoundException �...@browser.refresh �...@browser.text.should include?(COMPANY INFORMATION) rescue Watir::Exception::NoMatchingTextFoundException puts SVC failed to load the page. Exiting: Code2. end end Does using rescue syntax like this work, or no?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Rescue [Nested?]
Hmmm, well sure, if the web server is down you don't want to run the suite at all. I'd check for that first thing. Otherwise you can still catch the time out exception from wait_until and handle it, if there's a way to recover and move on. hth, Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Apr 28, 2009 at 12:03 PM, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: Thanks! I wanted to ensure, though, that if the element didn't exist, that I caught the exception, refreshed the page and the caused the script to exit, if the element still did not produce. (i.e.: if the web-server is down, neither the rescue nor wait until will work). On Apr 28, 12:59 pm, Charley Baker charley.ba...@gmail.com wrote: I suppose you could, but the smarter thing would be to wait until a certain element exists, using Watir's wait_until. http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissues... wait_until should by default poll for a given condition every .2 seconds up until 60 seconds. Charley Baker blog:http://blog.charleybaker.org/ Lead Developer, Watir,http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Apr 28, 2009 at 11:46 AM, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: Can I nest rescues, like one can (normally) nest if statements? For example: #Validates text that should exist on the page. @browser.text.should include?(COMPANY INFORMATION) #Rescues text not found, by refreshing the page rescue Watir::Exception::NoMatchingTextFoundException @browser.refresh @browser.text.should include?(COMPANY INFORMATION) rescue Watir::Exception::NoMatchingTextFoundException puts SVC failed to load the page. Exiting: Code2. end end Does using rescue syntax like this work, or no?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Rename Excel Worksheets in Ruby?
Hi! I haven't done this, but you might find the answer here: http://rubyonwindows.blogspot.com/search/label/excel Hope this helps! -Tiffany On Apr 28, 12:43 pm, AR reed.a...@gmail.com wrote: I've checked all the usual suspects (rubygarden article, searching here, etc), but I haven't found the functionality for renaming an Excel worksheet (NOT workbook) in watir using the Win32 library. Has anyone done this? --~--~-~--~~~---~--~~ 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: Rename Excel Worksheets in Ruby?
Thanks Tiffany - that site has been very useful as far as getting deep into Excel, but I was not able to find the worksheet renaming there earlier today... On Apr 28, 1:47 pm, Tiffany Fodor tcfo...@comcast.net wrote: Hi! I haven't done this, but you might find the answer here: http://rubyonwindows.blogspot.com/search/label/excel Hope this helps! -Tiffany On Apr 28, 12:43 pm, AR reed.a...@gmail.com wrote: I've checked all the usual suspects (rubygarden article, searching here, etc), but I haven't found the functionality for renaming an Excel worksheet (NOT workbook) in watir using the Win32 library. Has anyone done this? --~--~-~--~~~---~--~~ 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: The return of WTR-155 :)
Could you please open up new ticket for this issue (in Jira)? Also could you provide instructions on how to reproduce your problem? I understand your workaround, but It is unclear to me what you are trying to do when you see this error and it is unclear to me whether this is something that any one else has seen. Thanks for your help with this. I must say that I missed your original comment, as it was attached to a closed ticket. Bret Felipe Knorr Kuhn wrote: Hello, I have recently installed Ruby 1.8.6-26 and Watir 1.6.2 on a Windows 2000 machine at work and when I tried to run a simple script that attaches to an existing window, but I faced the same problem from 2 years ago: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:241:in `method_ missing': Windows (WIN32OLERuntimeError) OLE error code:80040154 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/ lib/watir/ie-class.rb:241:in `each' Notice that the problem occurs with ie-class.rb instead of watir.rb. The same workaround submitted 2 years ago to http://jira.openqa.org/browse/WTR-155 did the trick again. By the way, I'm not being able to post to the OpenQA forums, so excuse me if this is not the right place to post Thanks and regards, FK -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Ask me about Watir training www.watircraft.com/training --~--~-~--~~~---~--~~ 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: thinking about automation frameworks/harnesses
On Apr 28, 8:56 am, JArkelen johnvanarke...@gmail.com wrote: No, I have my own framework/directory structure for my tests and I'm perfectly happy with it. It seems hardly sporting to issue such a broad criticism and then leave without an example. :-) I wrote this to illustrate some principles of UI-test design, such that I could explain it to an audience in less than 30 minutes, not knowing how sophisticated that audience might be. It is intentionally simple, and it is pretty much an imperative programming style. If you see a way to make it better while keeping it simple, I'd very much like to see what you have in mind. Also, I'm a pretty crappy OO programmer, so again, I would learn something to see what changes you have in mind. -Chris --~--~-~--~~~---~--~~ 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: The return of WTR-155 :)
Hello, Bret. I wrote that comment two days after you resolved the issue, two years ago :) Basically, the workaround iterates the open windows through the ShellWindows object instead of Shell.Application After some initial research, I found this http://support.microsoft.com/default.aspx/kb/940998 to be only article close to an explanation to this problem, but I'm using IE6 and not IE7. Unfortunately, I'm not sure how to reproduce this bug as I used WinXP, Ruby 1.8.2 and Watir 1.5.1.1190 back then and the environment is completely different this time (Win2K, Ruby 1.8.6 and Watir 1.6.2). The Win32OLE exception was raised this time when I tried to attach to an existing IE window with @ie = Watir::IE.attach(:url, /10.200/). Back then, it happened after trying to create a new IE window with @ie = Watir::IE.new. I'll install a virtual machine at home and investigate this problem further, testing under different versions of Windows and IE. FK 2009/4/28 Bret Pettichord b...@pettichord.com Could you please open up new ticket for this issue (in Jira)? Also could you provide instructions on how to reproduce your problem? I understand your workaround, but It is unclear to me what you are trying to do when you see this error and it is unclear to me whether this is something that any one else has seen. Thanks for your help with this. I must say that I missed your original comment, as it was attached to a closed ticket. Bret Felipe Knorr Kuhn wrote: Hello, I have recently installed Ruby 1.8.6-26 and Watir 1.6.2 on a Windows 2000 machine at work and when I tried to run a simple script that attaches to an existing window, but I faced the same problem from 2 years ago: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:241:in `method_ missing': Windows (WIN32OLERuntimeError) OLE error code:80040154 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/ lib/watir/ie-class.rb:241:in `each' Notice that the problem occurs with ie-class.rb instead of watir.rb. The same workaround submitted 2 years ago to http://jira.openqa.org/browse/WTR-155 did the trick again. By the way, I'm not being able to post to the OpenQA forums, so excuse me if this is not the right place to post Thanks and regards, FK -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog http://www.io.com/%7Ewazmo/blog Twitter, www.twitter.com/bpettichord Ask me about Watir training www.watircraft.com/training --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---