Re: [wtr-general] Is Watir supports desktop application?
As Zelijko indicates, Web only. (Watir = Web Application Testing in Ruby) That having been said, a starting point/resource to consider obtaining is the book: Scripted GUI Testing with Ruby. http://pragprog.com/titles/idgtr/scripted-gui-testing-with-ruby On Mon, Oct 4, 2010 at 9:38 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Oct 4, 2010 at 4:35 PM, Maumita maumita.majum...@gmail.com wrote: Is this possible to test a desktop application using Watir or it only supports web based application. Web applications only. So it will be great if anyone can advice me for an automation tool (OpenSource) to test the functionality of my desktop application. Take a look: http://www.opensourcetesting.org/ Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
RE: [wtr-general] Re: Check out the Watir Stack Exchange site!
There’s a Watir forum on SQAForums. It has all of six Watir-related threads…it might be a interesting destination to switch efforts to. From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Chan Nguyen Sent: Friday, August 13, 2010 3:26 PM To: watir-general@googlegroups.com Subject: Re: [wtr-general] Re: Check out the Watir Stack Exchange site! I think Watir should have its own land ( a forum ). I tried both Selenium, Watin and WebTest, but I'm in love w/ Watir. On Fri, Aug 13, 2010 at 1:22 PM, Chuck van der Linden sqa...@gmail.com wrote: Too radical? I don't know. I agree something better is needed, google groups is not well suited to a 'support' type of work, there's no good way to track answered vs unanswered questions, nor which responses ended up being the best answer. Even the MSDN forums that MS has are far better, but I'm not sure if it would be open to us to create a forum there, nor if doing so would cause some kind of knee-jerk allergic reaction OMG it's Microsoft among Mac and Linux users. I created sample questions, and used up all my votes for all three types of question. I wonder if it was just not clear to people HOW to vote for the example questions? We had enough people over there, but nobody voted. did they not realize what it is they need to do? On Aug 13, 8:01 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: I am giving up on Watir Stack Exchange site (http://bit.ly/watirse). Nobody is voting on the questions. Maybe people are on vacation, or nobody cares. I will concentrate on thinking how to move Watir support tohttp://stackoverflow.com/ One idea I have: - create a page at watir.com http://watir.com/ with instructions how to post a question at stackoverflow.com http://stackoverflow.com/ - updatehttp://watir.com/support/page to say stackoverflow.com http://stackoverflow.com/ is the place for Watir support - send warning message at watir-general that it will be read only for a week - in that week post to watir-general only links to Watir questions at stackoverflow.com http://stackoverflow.com/ - see what happens and decide what to do next Is it too radical? :) Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com mailto:watir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
RE: [wtr-general] Re: facing issue with clicking buttons
Or, someone might take the lazy way out and use the ruby-gmail gem. But that's just me. Automating email handling through some sort of client (web, Outlook, etc.) is just plain dumb. I sometimes use something similar in Perl if/when I need to generate/send email. When all you have is a hammer, everything pretty much looks like a nail. Sometimes you have to think outside the box to solve your problems. (Note: This is not directly in response to Chuck...rather, in response to the insanity that is test automation.) -Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Chuck van der Linden Sent: Tuesday, July 27, 2010 5:59 PM To: Watir General Subject: [wtr-general] Re: facing issue with clicking buttons Frankly I'd find some other thing to try and automate. GMAIL intentionally makes their UI difficult to automate. ID's are uniquely regenerated each time you instantiate the compose mail page (and different each time) Classes look fairly randomized and I'd place no bets on Gmail not updating them on some rotating basis. That div with 'send' in it, consists of about 5 nested divs, and I've no idea which of them is 'wired' to respond to the click. Even if we figured out the right class etc to make it work, who's to say it would stay working an hour or a day from now. (consider for a moment all the 'evil' that could be caused by people abusing an easily scriptable gmail interface and you'll understand why there's no incentive on google's part to make any of this easy for anyone., and in fact quite a bit of incentive to make it very difficult) If it's possible at all, it's likely going to take something like Xpath to do it, or practically reverse engineering the DOM on the fly On Jul 27, 6:43 am, praveen kumar praveen454gr...@gmail.com wrote: Hi Raveendran, Thanks for the reply... I tried with the all the possibilities you provided.None of them are working. Getting error as Unable to locate element. Please let me know if any other options. Thanks, Praveen On Tue, Jul 27, 2010 at 11:09 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Praveen, Have you tried these possibilities ? *canvas_frame.div(:class, 'J-Zh-I J-J5-Ji Bq L3').flash* * canvas_frame.div(:id, ': 15m ').flash canvas_frame.div(:id, ': 15m ').flash * On Fri, Jul 23, 2010 at 1:32 PM, praveen kumar praveen454gr...@gmail.comwrote: Hi John, I have tried with div, but unable to click on button. Following is the code: require 'watir' require 'test/unit' require 'win32ole' class TC_article_example Test::Unit::TestCase def test_data $ie = Watir::IE.new $ie.goto(http://mail.google.com/mail/?ui=html;) #Define the excel file excel= WIN32OLE::new(excel.Application) wrkbook=excel.Workbooks.Open(C:\\test.xls) wrksheet = wrkbook.worksheets(1) wrksheet.select #read the data from excel file rows = 2 $username=wrksheet.cells(rows,A) ['text'] #puts $field $password=wrksheet.cells(rows,B) ['text'] $ie.text_field(:name,Email).set($username) $ie.text_field(:id,Passwd).set($password) $ie.button(:id, 'signIn' ).click #browser.show_frames # We need the iframe with ID 'canvas_frame'. Store it in a var. #$ie.goto(http://mail.google.com/mail/?ui=html;) canvas_frame = $ie.frame(:id, 'canvas_frame') # Get the current user's email address. We'll be sending email to it. my_address = $username mail_subject = 'Hello Watir world!' mail_body_text = 'Hi.' canvas_frame.span(:text, 'Compose Mail').click # Compose new mail canvas_frame.text_field(:name, 'to').set(my_address) canvas_frame.text_field(:name, 'subject').set(mail_subject) mail_body_frame = canvas_frame.frame(:index, 1) mail_body_frame.document.body.setproperty('innerText', mail_body_text) #$ie.goto(http://mail.google.com/mail/?ui=html;) * canvas_frame.div(:text, 'Send').click # Send the message I am facing problem here to click on Send button. It has no attributes like type, value* # canvas_frame.link(:text, 'Sent Mail').click # Browse to sent mail page # assert(canvas_frame.contains_text('Hello Watir world!')) # canvas_frame.link(:text, 'Inbox').click # Return to the inbox page $ie.link(:href,'https://mail.google.com/mail/?logouthl=en').clickhttp s://mail.google.com/mail/?logouthl=en%27%29.click $ie.close #rows=rows+1 end end I have also tried with the attribute id, but that is also not working. Please help me and let me know if require any details. Praveen On Thu, Jul 22, 2010 at 10:23 PM, John Fitisoff jfitis...@yahoo.comwrote: Try treating it as a div rather than a button?
RE: [wtr-general] Dialog boxes..
Watir for non-web applications? No. Ruby for non-web applications? Possibly. Couple of resources to consider: Scripted GUI Testing with Ruby by Ian Dees Everyday Scripting with Ruby by Brian Marick It all depends on what you're trying to do. (Not sure how this relates to dialog boxes unless they're contained within a Windows app. Methinx a separate thread would've been more meaningful for this question.) From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Ramu Pillai Sent: Friday, July 02, 2010 1:12 PM To: watir-general@googlegroups.com Subject: Re: [wtr-general] Dialog boxes.. Hi, Can Watir be used for automating windows applications??? Everyone obviously knows it could be used for automating web browser related activities. Thanks, Musheka On Mon, Jun 14, 2010 at 10:56 AM, Ramu Pillai mush...@gmail.com wrote: Hi Željko, Thanks a lot for your prompt reply.  Mouth On Mon, Jun 14, 2010 at 9:22 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Jun 14, 2010 at 3:17 PM, Ramu Pillai mush...@gmail.com wrote: I need to work with dialog boxes in watir. Did you read this? http://wiki.openqa.org/display/WTR/Pop+Ups Željko -- watir.com http://watir.com/ - community manager watirpodcast.com http://watirpodcast.com/ - host testingpodcast.com http://testingpodcast.com/ - audio podcasts on software testing. all of them vidipodkast.com http://vidipodkast.com/ - pričamo o hardveru, softveru i časopisu Vidi -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.  You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com mailto:watir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] How to create a file and save it.
Watir is really a tool for interacting with web applications. For what you want to do, you may want to rephrase the question as being Ruby-specific and not related to Watir. Further, you may want to invest a little time researching your problem. There are plenty of resources available to help you solve this problem. An initial hint is to google for 'ruby creating text file'. After that, once you have some code, you may want to reach out to a Ruby mailing list for further help. But, note that when you do reach out for help, there is going to be an expectation that you have specific questions that you're not able to solve rather than a blanket request for help. On Thu, Jun 3, 2010 at 7:28 AM, meaculpa harismah...@gmail.com wrote: I need to create a text file and save it using watir. How is it possible. Can anybody help ? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
RE: [wtr-general] method_missing due to bad html?
Tom, If you try to execute each line of your script through irb, what kind of results are you seeing? I was able to execute your script without issue on my machine here (Windows 7, Ruby 1.8.6, Watir 1.6.5). Part of me is wondering if what you're running into is some sort of permissions issue. Here's a copy of my irb session (note: I was also able to run things in a script without issue): Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\jasonirb irb(main):001:0 require watir = true irb(main):002:0 browser = Watir::Browser.new = #Watir::IE:0x3ae81a4 url=about:blank title= irb(main):003:0 browser.goto(http://202.36.68.44/;) = 1.683 irb(main):004:0 puts browser.url http://202.36.68.44/ = nil irb(main):005:0 -Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Tom Sent: Thursday, December 10, 2009 7:19 PM To: Watir General Subject: [wtr-general] method_missing due to bad html? Sorry if this is a repeat, but I did search for this issue and didn't find it. I'm a novice at both Ruby and Watir, as well. I have a very simple script (part of a much larger script that I'm trying to resurrect): require watir browser = Watir::Browser.new browser.goto(http://202.36.68.44/;) puts browser.url that results in c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb: 465:in `method_missing': unknown property or method `LocationURL' (WIN32OLERuntimeError) HRESULT error code:0x800706b5 The interface is unknown. from c:/ruby/lib/ruby/gems/1.8/gems/ watir-1.6.5/lib/watir/ie-class.rb:465:in `url' from mytest.rb:6 Originally I thought there was a compatability issue with IE8. But after removing/reinstalling both Ruby and Watir, I still get this error. I suspect the html is at issue, as this script obviously will work with other sites (tested by going to google). But the HTML validates (so I'm told by the developer). Can anybody provide at least a direction if not an answer? Cheers, Tom -- 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: Really....Ruby + Watir + Command Line
In a previous email, you indicate that you're running Watir 1.4.1. But, the below indicates that you're on 1.6.2. In any case, I tried running your code and it worked fine. (What happens if you switch the require 'watir' and require 'rubygems' lines? Could that be the source of your problem? Further, do you have the variable RUBYOPT set in your environment variables with the value of 'rubygems'?) That is: require 'watir' require 'rubygems' #require win32ole ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).click On Tue, Nov 10, 2009 at 8:42 AM, tester86 sagar.am...@gmail.com wrote: Here is the list of my local gems (just incase its helps) *** LOCAL GEMS *** actionmailer (2.3.4) actionpack (2.3.4) activerecord (2.3.4) activeresource (2.3.4) activesupport (2.3.4) builder (2.1.2) camping (1.5.180) commonwatir (1.6.2) cucumber (0.4.3) diff-lcs (1.1.2) firewatir (1.6.2) fxri (0.3.7, 0.3.6) fxruby (1.6.19, 1.6.12) hoe (2.3.3) hoe-seattlerb (1.2.1) hpricot (0.8.2, 0.6) json_pure (1.1.9) log4r (1.1.2, 1.0.5) markaby (0.5) metaid (1.0) minitest (1.4.2) polyglot (0.2.9) rack (1.0.1) rails (2.3.4) rake (0.8.7, 0.7.3) rspec (1.2.9) rubyforge (2.0.3) rubygems-update (1.3.5) s4t-utils (1.0.4) session (2.4.0) sources (0.0.1) term-ansicolor (1.0.4) test-spec (0.10.0) treetop (1.4.2) user-choices (1.1.6) watir (1.6.2) win32-api (1.4.5, 1.0.4) win32-clipboard (0.5.2, 0.4.3) win32-dir (0.3.5, 0.3.2) win32-eventlog (0.5.2, 0.4.6) win32-file (0.6.3, 0.5.4) win32-file-stat (1.3.4, 1.2.7) win32-process (0.6.1, 0.5.3) win32-sapi (0.1.5, 0.1.4) win32-sound (0.4.2, 0.4.1) win32console (1.2.0) win32ole-pp (1.2.0) windows-api (0.4.0, 0.2.0) windows-pr (1.0.8, 0.7.2) xml-simple (1.0.12) Is there any gem that I am missing that is causing the error? On Nov 10, 8:10 am, tester86 sagar.am...@gmail.com wrote: I removed include Watir now my script is: require 'watir' require 'rubygems' #require win32ole ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).click I still get the same error message. I am using watir 1.4.1. Below is my ruby version C:\rubyruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] I have done gem update prevsiously, gem system updates but nothing works. Any ideas on what I can do to get a basic script up and running using watir? On Nov 9, 10:52 pm, Raveendran P jazzezr...@gmail.com wrote: Hi, Add first line -- require 'rubygems' Remove line no.2 -- include Watir I hope it works now. If its not working then Please provide more details about Watir Verison and Ruby version. Thanks On Tue, Nov 10, 2009 at 3:19 AM, tester86 sagar.am...@gmail.com wrote: I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).submit when I run it from command line ruby filename.rb I get the following error message: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': unknown proper ty or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable.from c:/ruby/lib/ruby/ site_ruby/1.8/watir.rb:1336:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in `getContainerContents' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in `getObject' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `text_field' from script1.rb:6 Any Ideas.? -- Regards, P.Raveendranhttp://raveendran.wordpress.com-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: Really....Ruby + Watir + Command Line
Not exactly what I had in mind when I mentioned checking the environment variables. For Windows: Control Panel = System = Advanced = Environment Variables. On Tue, Nov 10, 2009 at 11:06 AM, orde ohil...@gmail.com wrote: 1. How do I check my envirnoment variables for ruby? This will give you the list (from command line): ruby -e 'puts global_variables.sort' This will give you the value for an individual env var: ruby -e 'puts [env_var]'. For example: ruby - e 'puts $DEBUG' orde On Nov 10, 8:47 am, tester86 sagar.am...@gmail.com wrote: I do not think that it is a permission an issue and I am using windows vista but going to be working on windows 7 soon. I do not know how to get a stack trace from my output. In my previous posts shows the error message that I get in command prompt. Question: 1. How do I check my envirnoment variables for ruby? On Nov 10, 9:38 am, Bret Pettichord b...@pettichord.com wrote: I am wondering if maybe this is a permissions problem. Are you using Windows 7? It would help if you printed the error and stack trace that you are now getting. Bret tester86 wrote: This morning I just upgraded to watir 1.6.2 and I also switched the lines but I still got the same output. On Nov 10, 9:00 am, Jason Trebilcock jason.trebilc...@gmail.com wrote: In a previous email, you indicate that you're running Watir 1.4.1. But, the below indicates that you're on 1.6.2. In any case, I tried running your code and it worked fine. (What happens if you switch the require 'watir' and require 'rubygems' lines? Could that be the source of your problem? Further, do you have the variable RUBYOPT set in your environment variables with the value of 'rubygems'?) That is: require 'watir' require 'rubygems' #require win32ole ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).click On Tue, Nov 10, 2009 at 8:42 AM, tester86 sagar.am...@gmail.com wrote: Here is the list of my local gems (just incase its helps) *** LOCAL GEMS *** actionmailer (2.3.4) actionpack (2.3.4) activerecord (2.3.4) activeresource (2.3.4) activesupport (2.3.4) builder (2.1.2) camping (1.5.180) commonwatir (1.6.2) cucumber (0.4.3) diff-lcs (1.1.2) firewatir (1.6.2) fxri (0.3.7, 0.3.6) fxruby (1.6.19, 1.6.12) hoe (2.3.3) hoe-seattlerb (1.2.1) hpricot (0.8.2, 0.6) json_pure (1.1.9) log4r (1.1.2, 1.0.5) markaby (0.5) metaid (1.0) minitest (1.4.2) polyglot (0.2.9) rack (1.0.1) rails (2.3.4) rake (0.8.7, 0.7.3) rspec (1.2.9) rubyforge (2.0.3) rubygems-update (1.3.5) s4t-utils (1.0.4) session (2.4.0) sources (0.0.1) term-ansicolor (1.0.4) test-spec (0.10.0) treetop (1.4.2) user-choices (1.1.6) watir (1.6.2) win32-api (1.4.5, 1.0.4) win32-clipboard (0.5.2, 0.4.3) win32-dir (0.3.5, 0.3.2) win32-eventlog (0.5.2, 0.4.6) win32-file (0.6.3, 0.5.4) win32-file-stat (1.3.4, 1.2.7) win32-process (0.6.1, 0.5.3) win32-sapi (0.1.5, 0.1.4) win32-sound (0.4.2, 0.4.1) win32console (1.2.0) win32ole-pp (1.2.0) windows-api (0.4.0, 0.2.0) windows-pr (1.0.8, 0.7.2) xml-simple (1.0.12) Is there any gem that I am missing that is causing the error? On Nov 10, 8:10 am, tester86 sagar.am...@gmail.com wrote: I removed include Watir now my script is: require 'watir' require 'rubygems' #require win32ole ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).click I still get the same error message. I am using watir 1.4.1. Below is my ruby version C:\rubyruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] I have done gem update prevsiously, gem system updates but nothing works. Any ideas on what I can do to get a basic script up and running using watir? On Nov 9, 10:52 pm, Raveendran P jazzezr...@gmail.com wrote: Hi, Add first line -- require 'rubygems' Remove line no.2 -- include Watir I hope it works now. If its not working then Please provide more details about Watir Verison and Ruby version. Thanks On Tue, Nov 10, 2009 at 3:19 AM, tester86 sagar.am...@gmail.com wrote: I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).submit when I run it from command line ruby filename.rb I get the following error message: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': unknown proper ty or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba
[wtr-general] Re: Really....Ruby + Watir + Command Line
Per http://wiki.openqa.org/display/WTR/include+Watir Don't use 'include' On Mon, Nov 9, 2009 at 3:49 PM, tester86 sagar.am...@gmail.com wrote: I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).submit when I run it from command line ruby filename.rb I get the following error message: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': unknown proper ty or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable.from c:/ruby/lib/ruby/ site_ruby/1.8/watir.rb:1336:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in `getContainerContents' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in `getObject' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `text_field' from script1.rb:6 Any Ideas.? --~--~-~--~~~---~--~~ 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: uninitialized constant Watir::PageContainer::Win32
See Bret's comment here (Nov 13, 2008, 12:17 am): http://groups.google.com/group/watir-general/browse_thread/thread/f3d3d8f602 3890cb/016c62b5a5ff6fb6 Tested it locally and it worked for me. -Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Shlomit Gazit Sent: Friday, October 30, 2009 6:56 PM To: Watir General Subject: [wtr-general] uninitialized constant Watir::PageContainer::Win32 I am trying to use enabled_popup.rb. I added require 'watir/contrib/ enabled_popup', but when I am starting the server I am getting: C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Program Files/Genuitec/MyEclipse 7.5/Workspaces/MyEclipse/ c2p_watir/c2p_test_issues_2_menus_dev.rb:18 All the solutions showed to add include Win32 in the rb file, but as I looked it is already there. Any ideas? --~--~-~--~~~---~--~~ 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: Answering incomplete requests
Seems to me, if we're receiving 'incomplete requests', then maybe there's a way to drive towards more complete requests. In the LoadRunner forum on SQAForums, they're pretty militant about getting environment information upfront before they'll answer questions. Maybe if we adopted some sort of a set of questions to be answered, then we might get some more thorough questions and be better able to provide answers. Something akin to: Ruby version: Watir version: OS/browser versions: Code: HTML: What's wrong/not working/whatever (how 'bout an error message?): Granted, there are some questions (and/or people) for whom this might be a little ridiculous...but it could make for an easy template to spit back at the incomplete request. Like you said, it really isn't terribly different from someone logging a defect/enhancement/whatever. So a little pushback, I think, might get things moving in a better direction. On Fri, Oct 23, 2009 at 2:49 PM, Bret Pettichord b...@pettichord.comwrote: This is a note to those of you who are answering other people's questions here. The rest of you can stop reading. Really. If you stay I'll just hurt your feelings. Ok. We need to have a frank discussion. We're getting a lot of crappy questions. There are a lot of requests for help coming in where the requester is posting way too little information for any one to possibly help them. And what's worse, you ask for more info and they reply with a lot of blather, but don't actually give you the information that we need to answer their questions. I've been getting sucked into this myself lately. I feel bad for them. I want to help. When you say it doesn't work, are you getting an error message? How many times do we need to ask this here? And then they reply, telling us they tried something else, but it didn't work either, and they still don't give us an error message! Or they give us just part of the error message. Or they leave out the stack trace. I guess they assume that because the stack trace looks like a bunch of gibberish, it won't help us either. You'd almost think that maybe they don't know anything about testing software or how to write a bug report. I learned how to extract a stack trace from a core file 20 years ago so that I could include it in my bug reports. With Ruby it just gets printed out. It's just a matter of cut and paste. Can we see your script?. Have you read the FAQ? What have you tried? -- How many times do we have to ask these questions? What can we do about it? 1. Stop responding to incomplete requests. Maybe they will repost with more information. Maybe not. Anyway, just ignore them. 2. Humiliate them and question their right to claim to be a tester if they can't even report a problem correctly. Make it clear that Watir is only for testers who have some basic competence. 3. What else? Bret -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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: cannot register window class in IE8
Couple of thoughts in the following: http://www.microsoft.com.nsatc.net/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.internetexplorer.betatid=77003381-d793-4236-a6a6-5466c779b85dcat=lang=cr=sloc=p=1 In a nutshell, three potential options: 1. Ctrl-F5 2. Delete temporary internet files 3. Disable Fireshot plugin in FF and try again On Thu, Oct 22, 2009 at 11:38 AM, aidy lewis aidy.le...@googlemail.comwrote: Hi Bret, I am getting an unspecified WIN32OLERuntimeError. Not much information, I know. Aidy 2009/10/22 Bret Pettichord b...@pettichord.com: I haven't heard of this. Can your provide a stack trace and complete error message? Bret aidy lewis wrote: Hi, Has anyone received 'cannot register window class' errors when running Watir tests in IE8? Aidy -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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: Does Watir support PHP based technology
In addition to Željko's answer... Are there other modules required to be installed along with Watir? Short answer: No. Longer answer: It depends on what you want to do. If the sole focus of your testing is the web front-end, then you are probably safe not having to install any other gems. But, if you want to do things like connect to a database or connect to a remote machine, then there are gems that you might want to consider installing to better support those tasks. On Wed, Sep 2, 2009 at 7:41 AM, rrash586 rrash...@gmail.com wrote: Hi All, I am new to watir and want to evaluate one web apps which is PHP based.Does watir support PHP based technology .Please let me know I does there any other modules require to install alongwith watir. I m using watir Watir 1.5.1. Does there any link for knowing the thingfs more Thanks in advance --~--~-~--~~~---~--~~ 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: ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem watir locally or in a repository
Run the following at the command line:gem sources This will list out the sources configured on your system. And, if that fails, then try the following: gem env This lists out your current RubyGems environment. And if all of those fail, then I'd be willing to hazard a guess that you may want to set up the RUBYOPT environment variable. These three items should give you a number of initial steps to start further debugging what is taking place. On Fri, Aug 14, 2009 at 12:49 PM, anna barbara ostrowska ab.ostrow...@gmail.com wrote: It did not help. Any other ideas? I have not such a problem in the past. Thanks in advance. Anna 2009/8/10 Charley Baker charley.ba...@gmail.com The most likely situation is that you're behind a proxy server: http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIgeminstallWatirbehindaproxyserver%3F Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Mon, Aug 10, 2009 at 11:24 AM, anna barbara ostrowska ab.ostrow...@gmail.com wrote: Hi guys, I was trying to install watir on windows. However after typeing 'gem install watir' I have experienced following error: ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem watir locally or in a repository Any ideas how to deal with it? Thanks in advance. Anna --~--~-~--~~~---~--~~ 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: Does Watir 1.6.2 install on Mac OS X?
Here's a thread to look at: http://groups.google.com/group/watir-general/browse_thread/thread/2870724cfa c1f1aa -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Moochie Sent: Sunday, April 26, 2009 4:19 PM To: Watir General Subject: [wtr-general] Re: Does Watir 1.6.2 install on Mac OS X? when I run this: sudo gem install safariwatir I get this? Building native extensions. This could take a while... ERROR: Error installing safariwatir: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb can't find header files for ruby. Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rb- appscript-0.5.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/rb-appscript-0.5.1/ gem_make.out Any ideas? --~--~-~--~~~---~--~~ 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: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject...
In addition to what Darin has recommended, you might want to see what happens when you run the below commands through irb. (Like Darin, I was able to complete the below.) -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Darin Duphorn Sent: Wednesday, March 18, 2009 8:37 PM To: watir-general@googlegroups.com Subject: [wtr-general] Re: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... Does it open the web page correctly? Or does it fail right off the bat? Check the following. Goto Setting -Control Panel- System Click Advanced Tab Click Environment Variables Under Path Variable verify c:\Ruby\bin Exists. If not add it. Under PATHEXT Variable verify .RB exists. If not add it If variable RUBYOPT Doesn't Exist add it RUBYOPT - Value = -rubygems -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of vladimir...@hotmail.com Sent: Wednesday, March 18, 2009 8:26 PM To: Watir General Subject: [wtr-general] Re: Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... Thank you, Darin for reply. Ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] Gem list: *** LOCAL GEMS *** activesupport (2.3.2) builder (2.1.2) commonwatir (1.6.2) firewatir (1.6.2) fxri (0.3.6) fxruby (1.6.12) hoe (1.11.0) hpricot (0.6) log4r (1.0.5) rake (0.8.4, 0.7.3) rubyforge (1.0.3) rubygems-update (1.3.1) s4t-utils (1.0.4) sources (0.0.1) user-choices (1.1.6) watir (1.6.2) win32-api (1.4.0, 1.0.4) win32-clipboard (0.4.3) win32-dir (0.3.2) win32-eventlog (0.4.6) win32-file (0.5.4) win32-file-stat (1.2.7) win32-process (0.6.0, 0.5.3) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.3.0, 0.2.0) windows-pr (1.0.2, 0.7.2) xml-simple (1.0.12) On Mar 18, 6:02 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: I ran your code and it worked for me. What Version of ruby did you load? Type in command prompt ruby -v What gems do you have installed? gem list -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of vladimir...@hotmail.com Sent: Wednesday, March 18, 2009 6:42 PM To: Watir General Subject: [wtr-general] Getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObject... I was trying to run google_search.rb from tutorial: require 'watir' # set a variable test_site = http://www.google.com; # open the IE browser ie = Watir::IE.new ie.goto test_site ie.text_field(:name, q).set pickaxe # q is the name of the search field Always getting 'assert_exists': Unable to locate element, using :name, q (Watir::Exception::UnknownObjectException...) Spent already half a day. Nothing works. Please, help. Thank you very much, Vladimir- 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 to send a mail from outlook express using watir
The initial question that occurred to me is why you are trying to automate the sending of an email with Outlook Express. Why not leverage Ruby to send the email without the additional complexity of trying to figure out how deal with Outlook Express. Bringing Outlook Express into the equation just seems painful to me. Beyond that, to address your original question, it might help to break down the problem into manageable parts. First, create a script to send a simple email.then, start worrying adding the complexity of sending content from a log file. Jason From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of prasoona alluri Sent: Thursday, March 05, 2009 5:35 AM To: watir-general@googlegroups.com Subject: [wtr-general] Re: How to send a mail from outlook express using watir Thank for the reply. But i am facing the following error `initialize': unknown OLE server: `Outlook.Application' (WIN32OLERuntimeError) for the following statement require 'win32ole' outlook = WIN32OLE.new('Outlook.Application') Thanks On Thu, Mar 5, 2009 at 5:12 AM, Walter Kruse ou_ryp...@hotmail.com wrote: This is for Outlook, but maybe it can help: http://rubyonwindows.blogspot.com/search/label/outlook _ Date: Thu, 5 Mar 2009 04:40:02 -0600 Subject: [wtr-general] How to send a mail from outlook express using watir From: pallu...@gmail.com To: watir-general@googlegroups.com Hello, Please help me to delvelop a script for sending a mail from outlook express using watir. The message text should be read from a log file . Thanks in advance. -Prasoona _ See all the ways you can stay connected to friends and family http://www.microsoft.com/windows/windowslive/default.aspx br --~--~-~--~~~---~--~~ 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: Converting Dates Question
On Thu, Oct 9, 2008 at 3:27 PM, Željko Filipin [EMAIL PROTECTED]wrote: On Thu, Oct 9, 2008 at 8:26 PM, Moochie [EMAIL PROTECTED] wrote: Jason, You're suppose to be on vacation. Step away from the computer. Too good not to comment! :) Željko As much as I'd like to have been on vacation, it was only training. And now I'm back in the office...so there! But, I think someone needs to schedule a meeting or two or ten to go over all the crap that's going to be dumped in my lap...er, passed along, even. This means you, Mr Moochie! :-) (And y'know, I really should just throw something over the cube wall. It'd save bandwidth.) Jason --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---