[wtr-general] Comments on Watir Architecture

2009-02-24 Thread Bret Pettichord
I feel that Watir has seen a huge paradigm shift especially in the last year. My thinking is, it has shifted from being a test driver implementation to an API to which individual drivers conform to. http://developer-in-test.blogspot.com/2009/02/watir-is-it-good-or-just-good-enough.html

[wtr-general] Re: undefined method `send_keys' for #FireWatir::Firefox:0x347e8cc (NoMethodError)

2009-02-24 Thread Bret Pettichord
Not supported in FireWatir. You might want to add this to Jira. Bret Bill Mosteller wrote: Thought I'd posted this last night, try, try again. I've got a script that's working nicely with Watir, MS-IE, and an imbedded YUI editor, and I'm trying to replicate things under FireWatir. I've

[wtr-general] Re: LoadError: 14001: This application has failed to start because....

2009-02-24 Thread Bret Pettichord
Your problem is with the win32-api gem. Lots of others are having problems with this as well, as you'll see if read some of the other active threads. Right now, best solution is to uninstall ruby, reinstall, and pray. We are working to better understand the details. Bret AR wrote: Thanks

[wtr-general] Re: Gem Recall Notice: win32-api

2009-02-20 Thread Bret Pettichord
? The problem is that the one-click-installer is version 1.8.6 and that might be the version with the problems gems recall. Is there another place to download a one-click-installer without the gems recall problem? Cheers On Feb 12, 5:20 pm, Bret Pettichord b...@pettichord.com wrote: This notice

[wtr-general] Re: Supporting :test in more methods, e. g., .link, .div, .hx, etc.

2009-02-20 Thread Bret Pettichord
I think that wiki page hasn't been updated to keep pace with Watir development. Here is the current code (which you can emulate or modify if you want to add to it): http://github.com/bret/watir/blob/28e41789478e27186a144ccc72938d17e8fcf086/watir/lib/watir/non_control_elements.rb All the

[wtr-general] Re: msvcr80-ruby18.dll was not found error troubles

2009-02-20 Thread Bret Pettichord
Jeff Fry wrote: irb(main):003:0 Watir::IE::BROWSER NameError: uninitialized constant Watir::IE::BROWSER from (irb):3 This is correct, and what I get too. There is no such thing as Watir::IE:BROWSER. Bret --~--~-~--~~~---~--~~ You received this

[wtr-general] Re: Watir documentation license

2009-02-19 Thread Bret Pettichord
The Watir Rdoc would be covered by the same BSD license as the rest of the source code. I don't think we have a license for the wiki. Bret Željko Filipin wrote: Does Watir documentation have a license? Is documentation BSD license like Watir code? Željko

[wtr-general] Re: FireWatir and unicode IDs/input, etc... Works with Watir/IE...

2009-02-19 Thread Bret Pettichord
My guess is that the problem lies with the encoding used over the socket that connects to the JSSH plugin. Bret John Kolokotronis wrote: Furthermore, I tried Željko's solution here: http://zeljkofilipin.com/2007/02/26/enter-non-english-character-in-text-field/ Works perfectly with Watir/IE

[wtr-general] Re: Does Watir 1.6.2 install on Mac OS X?

2009-02-19 Thread Bret Pettichord
(instead of the other way around which I originally did), worked fine and the common Watir::Browser.default option is working correctly in setting Safari as the browser to work with. FireWatir has always worked as expected for me. Regards, John On Feb 19, 5:21 am, Bret Pettichord b

[wtr-general] Re: Watir documentation license

2009-02-19 Thread Bret Pettichord
My question is: would your lawyer call my lawyer if some parts of my article are similar to some Watir documentation? :) Without an explicit license, the wiki contents are in the public domain. Go ahead and reuse it as you will. Bret --~--~-~--~~~---~--~~

[wtr-general] Re: watir .. new_process .. and IE8 (beta 2)

2009-02-19 Thread Bret Pettichord
Could you please log your report in Jira? Bret Paul Denize wrote: Someone unfortunately upgraded one of my PC's. I was pleased to find miost watir scripts still ran. One did not. It was the only one that utilized two IE windows at the same time. The code below demonstrates the issue -

[wtr-general] Re: Win32::API::Error

2009-02-18 Thread Bret Pettichord
you may need to reinstall a gem. please see the recent notice, gem recall. bret magn...@ifi.uio.no wrote: Hello, untill recently Watir worked fine, but today, when I run a script I get the Error message: c:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/api.rb: 333:in

[wtr-general] Re: Does Watir 1.6.2 install on Mac OS X?

2009-02-18 Thread Bret Pettichord
::Browser.new continues to launch Firefox? On Feb 9, 8:37 pm, Bret Pettichord b...@pettichord.com wrote: John Kolokotronis wrote: The wiki also still mentions that Mac installation is done with: sudo gem update --system sudo gem install firewatir

[wtr-general] Re: Prolems with starting FireWatir on Mac

2009-02-18 Thread Bret Pettichord
The firewatir unit tests won't run from the gem install on any platform. Bret jbgene wrote: Is there another workaround. When I add require rubygems' I get: `gem_original_require': no such file to load -- unittests/setup/lib (LoadError) It just seems to transfer what are incompatible or

[wtr-general] Re: Controlling JavaScript Pop Ups without .click_no_wait

2009-02-16 Thread Bret Pettichord
Bill Mosteller wrote: Thanks. Just tried onClick, and it doesn't work either. From the Ruby PickAxe book: And if some thread happens to make a call to the operating system that takes a long time to complete, all threads will hang until the interpreter gets control back. Exactly. Which

[wtr-general] Re: How to Include a ruby Program inside another Ruby Program

2009-02-13 Thread Bret Pettichord
The problem is that you have include Watir at toplevel in one of your programs. Bret malar wrote: Hi, I have to include a ruby program inside another ruby program. i used the following command, require ' logintest.rb' But i am getting an error,

[wtr-general] Re: Gem Recall Notice: win32-api

2009-02-13 Thread Bret Pettichord
For some background on this problem, please see Daniels recent statement. http://djberg96.livejournal.com/162898.html Bret Pettichord wrote: Here is a stack trace that indicates that you have the error discussed below: C:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.3.0-x86-mswin32-80/lib/win32

[wtr-general] Re: Unable to open IE window

2009-02-12 Thread Bret Pettichord
- :bulk_threshold = 1000 - REMOTE SOURCES: -http://gems.rubyforge.org/ Thanks for your help! Ben Lemire On Feb 12, 1:58 am, Bret Pettichord b...@pettichord.com wrote: I think you need to do more than that. The problem seems to be that there bad versions of these gems out

[wtr-general] Gem Recall Notice: win32-api

2009-02-12 Thread Bret Pettichord
This notice applies to people who installed Watir last week and are seeing problems. There was a bad gem, win32-api version 1.3.0 distributed last week. The problem was fixed with a new gem that was given the same version number. As a result, the gem installer can't tell whether you have the

[wtr-general] Re: Gem Recall Notice: win32-api

2009-02-12 Thread Bret Pettichord
:in `gem_original_require' from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:45 Bret Pettichord wrote: This notice applies to people who installed Watir last week and are seeing

[wtr-general] Tips on installing gems

2009-02-08 Thread Bret Pettichord
These tips are written for Watir users, but apply to any gems. 1. First do gem update --system. This updates you to the latest version of rubygems (the gem installer). You only need to do this once (after you install Ruby). Many of the problems that people report with installing gems happen

[wtr-general] Re: Japanese Watir Instruction (Translated to English)

2009-02-06 Thread Bret Pettichord
Al, Can you share what you learned from this? Bret Al Snow wrote: http://translate.google.com/translate?prev=_thl=enie=UTF-8u=http%3A%2F%2Fd.hatena.ne.jp%2Fi123%2F20080906%2F1220725269sl=jatl=enhistory_state0= Can we learned from them to improve the Watir wiki? Al

[wtr-general] Re: Unable to install watir

2009-02-05 Thread Bret Pettichord
connect your computer to the internet. aruna prabha wrote: then how do i install watir in that case. Aruna On 2/5/09, *Bret Pettichord* b...@pettichord.com mailto:b...@pettichord.com wrote: The error indicates that the gem installer is unable to access rubyforge.org http

[wtr-general] gem install windows-pr -- this is the answer

2009-02-05 Thread Bret Pettichord
Many people who have recently installed Watir are reporting new problems. We've tracked them down to some new windows gems that Watir uses. They have some incompatibilities. Many people are able to fix these problems by doing gem install windows-pr Give it a shot. It might work for you

[wtr-general] Fixing the new Watir problem

2009-02-05 Thread Bret Pettichord
cannot be the only person who has encountered this. Yep, you want this combination: win32-api 1.3.0 or later windows-api 0.3.0 or later windows-pr 0.9.9 or later Regards, Dan -- Bret Pettichord GTalk: bpettich...@gmail.com CTO, WatirCraft LLC, http://www.watircraft.com Lead Developer

[wtr-general] Re: Unable to install WATIR on VM client machine

2009-02-04 Thread Bret Pettichord
it is possible to simply copy over your ruby directory after you have installed watir on another machine. i've done this. bret aidy lewis wrote: Good point. Not sure if you can just copy over your gem folder. Or create the VM after you have installed your test environment Aidy 2009/2/4

[wtr-general] Re: Eclipse is displaying the execution summary

2009-02-04 Thread Bret Pettichord
I used to use eclipse this way, and have had similar troubles and now just run my tests from the command line. I still use eclipse for editing. Even when i get Eclipse to run my tests, it is slow. Niharika Patro wrote: Hi, I am facing a weird issue while executing Watir scripts in Eclipse.

[wtr-general] Re: Extending the IE class

2009-02-04 Thread Bret Pettichord
doing include Watir might be the source of your problem. Bret Brian Tomlin wrote: I have an old script that extends the IE class. Here are the first few lines: require 'rubygems' require 'watir' include Watir class Portal IE This use to work fine before, but I have recently updated

[wtr-general] Re: Unable to install watir

2009-02-04 Thread Bret Pettichord
The error indicates that the gem installer is unable to access rubyforge.org, where the gems are stored. This can happen if there is a firewall, in which case you need to set a proxy. It can also happen if your computer is not connected to the network. Bret aruna prabha wrote: I have set

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2009-02-03 Thread Bret Pettichord
is for winClicker.rb I don't know how it's going to affect click_no_wait method. Can anyone please help me out. Thanks and Regards, Lokesh Agrawal On Feb 2, 9:08 pm, Bret Pettichord b...@pettichord.com wrote: http://jira.openqa.org/browse/WTR-279 lokesh.agra...@gmail.com wrote: Hi Bret

[wtr-general] Re: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480

2009-02-03 Thread Bret Pettichord
:in `setu p' 2) Error: test_send_public_gift(TC_Send_Private_Gift): NoMethodError: undefined method `close' for #Watir::IE:0x3294480 C:\Documents and Settings\anna\Desktop\ruby\Gifts\PrivateGift.rb:19:in `tear down' 1 tests, 0 assertions, 0 failures, 2 errors 2009/2/2 Bret Pettichord b

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2009-02-02 Thread Bret Pettichord
http://jira.openqa.org/browse/WTR-279 lokesh.agra...@gmail.com wrote: Hi Bret, Can you please tell me from where I can get the patch? Thanks and Regards, Lokesh Agrawal On Jan 20, 7:53 am, Bret Pettichord b...@pettichord.com wrote: A patch that fixes this problem was recently

[wtr-general] Re: How to identify the li tags

2009-02-02 Thread Bret Pettichord
A = ie.div(:class, /text/).li(:index, 1).text Amit Agarwal wrote: Hi, Please help me in identifying the text written in the li tag of a defined div div class=text nbsp;Please review and make necessary corrections on this page: ul li

[wtr-general] Re: Watir Bug on Cygwin: Diagnosis and Workaround

2009-02-01 Thread Bret Pettichord
Thank you for figuring out how to get Watir working (again) with cygwin. If you could put this in Jira, then we'll be sure to look at fixing this in the next release. Bret Arco wrote: On Cygwin, I ran into two separate problems that prevented Watir 1.6.2 from working. First, the

[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Bret Pettichord
You might need to set the execute bit of the win32ole.so file. Arco wrote: Hi Sai - Yes I did check the permissions, and searched the newsgroups for possible solutions. I tried running Watir on different cygwin platforms w/o success. Could the bug be tied to a certain version of ruby??

[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Bret Pettichord
I agree with #2. Watir::IE.new should be fine. I'm also 99% sure you don't even need the win32ole.so file (it is only needed for showModalDialog support). There is a line in the watir code that loads this file (instead of the standard win32ole.so file that comes with ruby). So I suggest

[wtr-general] Re: Ineract with java pop-up window

2009-01-27 Thread Bret Pettichord
Is it showModalDialog? mag7417 wrote: Hi! I have devoured as much information as possible all over the Internet the past few days dealing with my problem. I see people talk about Watir and Java but nothing related to my problem. I am trying to access a website (actual code except the

[wtr-general] Re: ie.contains_text problem

2009-01-23 Thread Bret Pettichord
From: Bret Pettichord b...@pettichord.com To: watir-general@googlegroups.com Sent: Friday, January 23, 2009 7:05:46 AM Subject: [wtr-general] Re: ie.contains_text problem I'm not sure if contains_text returns false or nil when fails to find a match. Try this instead: if assert

[wtr-general] Re: problem in displaying objects from frames

2009-01-22 Thread Bret Pettichord
I'm not sure, but i think you can do frame.images.show instead. Bret Jagdeep Jain wrote: Hi, It seems that there are some problem with following methods with frames... are there any other ways we can have all images, spans, links, divs, frames, tables from the frames? 1) Error:

[wtr-general] Re: Help on updating the Watir website with ChromeWatir info

2009-01-19 Thread Bret Pettichord
I have handed over responsibility for the Watir website to Charley Baker, Alister Scott and Alan Baird. Bret sai wrote: Hi, Is it possible to update the watir website with the ChromeWatir and FlashWatir info? It will give people updated info about Watir. Thank you. Please let me know if

[wtr-general] AWTA Workshop Notes

2009-01-19 Thread Bret Pettichord
This weekend we held a workshop on several Watir related subjects. http://awta.wikispaces.com/AWTA+2009 Notes, photos, presentations, and podcasts from the workshop have been posted. http://awta.wikispaces.com/Notes+from+AWTA+2009 Bret -- Bret Pettichord GTalk: bpettich...@gmail.com CTO

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2009-01-19 Thread Bret Pettichord
to the @page_container.eval_in_spawned_process when running under this type of security setup. Make sure whatever process is launching Ruby is running as a normal user account and see if that resolves the problem. Hope this helps. On Dec 12 2008, 9:19 am, Bret Pettichord b...@pettichord.com

[wtr-general] Re: After Updating ruby version from 1.8.4 to 1.8.6 and watir gem version 1.5.1.1192 to 1.5.1.1230 , am getting error with require command

2009-01-15 Thread Bret Pettichord
1. somehow you did not actually install watir. 2. you should use watir 1.6.2. it is better. bret Rahil wrote: Hi Guys, Am using watir for quite some time with ruby version 1.8.4 and watir gem version 1.5.1.1192. Till now it was working fine for me with this version but just now i have

[wtr-general] Re: IE hoging memory

2009-01-14 Thread Bret Pettichord
Turn off page caching? Bissquitt wrote: I did find one answer a few pages back but they involved closing IE On Jan 13, 2:47 pm, Bissquitt bissqu...@gmail.com wrote: So im running a script that goes to MANY webpages and I noticed that each web page it goes to it still stores the

[wtr-general] Re: Application not loaded

2009-01-12 Thread Bret Pettichord
It sounds like you may have encounted a bug in goto that occurred with an old version of Watir. What version are you using? Prince3105 wrote: Hi Experts, I use below code to log the application, some time application hangs to load, that time test also gets hang and lets to fail. @ie1

[wtr-general] Re: element_by_xpath return value

2009-01-12 Thread Bret Pettichord
Richard Lawrence wrote: Using FireWatir's element_by_xpath on my Mac, I get the expected type for the element. For example, on the Google home page: irb(main):008:0 b.element_by_xpath(//*...@name='btnG']).class submit = FireWatir::Button But with Watir (on Windows, of course), I always

[wtr-general] Re: element_by_xpath return value

2009-01-12 Thread Bret Pettichord
to add here? Bret Richard Lawrence wrote: But there's no way for Watir to infer the object type the way FireWatir does? Thanks, Richard On Mon, Jan 12, 2009 at 9:15 AM, Bret Pettichord b...@pettichord.com wrote: Richard Lawrence wrote: Using FireWatir's element_by_xpath on my Mac

[wtr-general] Re: Watir IE Memory Usage

2009-01-07 Thread Bret Pettichord
AR wrote: I tried another instance where I added the ie = Watir::IE.new and an ie.close to the function, but opening and closing IE for each url took up more memory. Try Watir::IE.new_process instead. This will open (and then close) a process each time, and therefore should avoid the

[wtr-general] Re: Sample Ruby Application

2009-01-05 Thread Bret Pettichord
/archives/2007_07.html#000254 Cheers, Alister On Dec 23 2008, 2:17 am, Bret Pettichord b...@pettichord.com wrote: aami...@gmail.com wrote: I am in search of a sample Ruby Based Web Application which can be used for testing using Watir tool. Can anyone helpme on this. Thanks in advance

[wtr-general] Re: Is the FireWatir-Watir integration working for you?

2009-01-05 Thread Bret Pettichord
If you can get me a reproducible case, then I would like to see a Jira report. Otherwise, you might just add a note to http://wiki.openqa.org/display/WTR/Firewatir+Compatibility watirpuppy wrote: After breaking out the offending line userID = @@browser.cell(:xpath,

[wtr-general] Re: stupid install problem

2008-12-29 Thread Bret Pettichord
Normally when you install Ruby on Windows, sets the RUBYGEMS env var to rubygems -rubygems. My guess is that when you reinstalled, for some reason this did not happen. You can do this manually and it should fix your configuration. Note to others: this solution can also work on Mac if you

[wtr-general] Re: The Urgent Issue For Ruby 1.8.6

2008-12-29 Thread Bret Pettichord
I think you need a newer version of Ruby 1.8.6. I recommend 1.8.6-26. What are you using? Bret bugs apple wrote: Hi, all In our 32 bit winXP, the Watir 1.5.6 and ruby 1.8.6 have installed. Sometimes we have ran into the Ruby crash unexpectedly. it throws the following errors,

[wtr-general] Re: FireWatir Installation

2008-12-29 Thread Bret Pettichord
It is good that you are doing this. Suggestions. If target is Windows + Mac + Linux 1. gem install firewatir 2. check 3 - not necessary, remove 4 - not necessary, remove 5. check Bret aidy lewis wrote: Hi, Can anyone please have a quick look at this to see if it is accurate?

[wtr-general] Re: Is the FireWatir-Watir integration working for you?

2008-12-29 Thread Bret Pettichord
This is the first I've heard of this problem. Could you please report this in Jira? http://jira.openqa.org/browse/WTR Bret watirpuppy wrote: I've run into a few issues too. I'm writing scripts that work in both IE and FireFox. Using Watir::Browser.default = and Watir::Browser.new

[wtr-general] Re: FireWatir Installation

2008-12-29 Thread Bret Pettichord
Today the Watir gem only works on Windows. I have plans to eventually make it be cross-platform. Bret aidy lewis wrote: Hi Bret, 2008/12/29 Bret Pettichord b...@pettichord.com: It is good that you are doing this. Suggestions. If target is Windows + Mac + Linux 1. gem install

[wtr-general] Re: Capturing data within an xml

2008-12-23 Thread Bret Pettichord
, No i havent used Mechanize. Nor have i heard of it to be honest. Before i jump into it and start playing around with it, i would like to ask have you used it in the means in which im trying to access the xml defined above? Cheers On Dec 23, 3:08 am, Bret Pettichord b

[wtr-general] Re: attach method

2008-12-22 Thread Bret Pettichord
aidy lewis wrote: Hi, Can anyone tell me where the attach method now exists? Aidy It is an instance method on Watir::IE and a class method on FireWatir::Firefox. If you look in trunk, you'll see that there is also an instance method on FireWatir::Firefox. Bret

[wtr-general] Re: Capturing data within an xml

2008-12-22 Thread Bret Pettichord
Have you considered using Mechanize instead of Watir? That's what I've used when I've had to test XML. Bret winstan wrote: Hello Again, After playing around with rexml with some of the URL’s provided in this thread and other sites I have found I have established that you are in fact

[wtr-general] Re: Sample Ruby Application

2008-12-22 Thread Bret Pettichord
aami...@gmail.com wrote: I am in search of a sample Ruby Based Web Application which can be used for testing using Watir tool. Can anyone helpme on this. Thanks in advance. I've been using the Depot application from the Rails Book, for this purpose.

[wtr-general] Re: watir help: click_no_wait doesn't actually click

2008-12-20 Thread Bret Pettichord
. Driving me nuts, just glad to see someone else has the issue, because this has been driving me up the wall. On Dec 9, 7:55 am, Bret Pettichord b...@pettichord.com wrote: Is this true for the others seeing this problem as well? I've tested this on Vista and haven't seen it, so I know

[wtr-general] Re: javascript for javascript boxes

2008-12-19 Thread Bret Pettichord
This approach would work. It's what Selenium does. Bret aidy lewis wrote: Hi, Why isn't Watir using Javascript to deal with confirm or alert boxes? Would it not be easier to pass something like this to the address bar: javascript:void(window.confirm=function(){return true;}); ? Aidy

[wtr-general] Re: Is the FireWatir-Watir integration working for you?

2008-12-19 Thread Bret Pettichord
I did not realize that people were still posting bug reports to the firewatir project. We've been using Jira to track bugs with FireWatir since the summer. http://jira.openqa.org/browse/WTR Wilson, I read your report, but would appreciate more details. Can you give us an example of a page

[wtr-general] Re: What is the difference between undefined value and null valu

2008-12-13 Thread Bret Pettichord
Everybody, this post is spam. This post is about PHP and is being posted here simply as a way to increase traffic to the interview door site, not to help the Watir community. Could some one please block the poster from this list. He's done this more than once. Bret raj wrote: What is the

[wtr-general] Re: click image for given DIV ID

2008-12-13 Thread Bret Pettichord
No. Shiv wrote: Bret Since we have customiztion on the 1.4 watir code, we not able to upgrade now. is there any tweak? Thanks Shiv On Dec 12, 7:20 am, Bret Pettichord b...@pettichord.com wrote: This is a bug in Watir 1.4. It is fixed in Watir 1.5 and Watir 1.6. Time to upgrade

[wtr-general] Re: Need to access the first LI element within an UL element

2008-12-12 Thread Bret Pettichord
/Signed in as (.*)/.match(browser.ul(:id, 'ulInfoLinks').li(:index, 1).text)[1] Natasha wrote: Hi All, I want to access the value of the LI element, which is within an UL element. Following is the HTML structure: UL class=inline id=ulInfoLinks LI Signed in as STRONG

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Bret Pettichord
I claim that it works the way you'd expect. To test this claim, tell me how you'd expect it to work. Bret Chuck vdL wrote: The set option is a nice way to be able to run the very same script against both browsers without having to edit the script itself. e.g. run in one system set for

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Bret Pettichord
Margam, I cannot reproduce your problem as described. C:\set watir_browser=firefox C:\irb irb(main):001:0 require 'watir' = true irb(main):002:0 b = Watir::Browser.new = #FireWatir::Firefox:0x3d32c48 @window_url=about:blank, @t=#Thread:0x3d0c7 8c sleep,

[wtr-general] Re: Please Explain core_tests.rb

2008-12-10 Thread Bret Pettichord
Please do not that although you can't run these tests from the gem, you *can* run them if you pull the development source. A great way to learn what this code does is to run it and then start changing lines and see what happens. I do it all the time. Bret Mark Anderson wrote: This seemed

[wtr-general] Re: Please Explain core_tests.rb

2008-12-10 Thread Bret Pettichord
Er, Please do NOTE that ... Bret Pettichord wrote: Please do not that although you can't run these tests from the gem, you *can* run them if you pull the development source. A great way to learn what this code does is to run it and then start changing lines and see what happens. I do

[wtr-general] Re: NoMethodError: undefined method `links' for nil:NilClass

2008-12-10 Thread Bret Pettichord
Upgrading to 1.6.2 for most people should be a zero-effort upgrade. Upgrading to use Browser.new and make your tests also work with FireWatir -- now that may take some effort. (This is what i think you are doing.) A full stack trace would help. Bret [EMAIL PROTECTED] wrote: Howdy, I am

[wtr-general] Re: watir help: click_no_wait doesn't actually click

2008-12-09 Thread Bret Pettichord
Is this true for the others seeing this problem as well? I've tested this on Vista and haven't seen it, so I know there is more to it, but I could believe that it is something Vista specific. Bret Divya wrote: It happens only on Vista On Dec 9, 2:10 am, Bret Pettichord [EMAIL PROTECTED

[wtr-general] Re: watir help: click_no_wait doesn't actually click

2008-12-08 Thread Bret Pettichord
Larry, We've had multiple reports of this problem with click_no_wait, but I have not been able to reproduce them. Bret [EMAIL PROTECTED] wrote: Hey all - I'm trying to dismiss popups as described at http://wiki.seleniumhq.org/display/WTR/JavaScript+Pop+Ups, solution #5. The first

[wtr-general] Re: browser.attach

2008-12-05 Thread Bret Pettichord
Watir::Browser.attach is not supported/included in 1.6.2. (although it mostly works in trunk) Watir::IE.attach continues to work as ever. Bret aidy lewis wrote: Hi Bret, 2008/12/4 Bret Pettichord [EMAIL PROTECTED]: Where do you see that it is not supported? http

[wtr-general] Re: Watir Ruby in Steel

2008-12-05 Thread Bret Pettichord
, Bret Pettichord [EMAIL PROTECTED] wrote: Please do note that all of the examples you've found so far represent correct Ruby code. In many cases with Ruby, parentheses are optional. It might be best if you reported your findings to the Ruby in Steel people so that they can fix

[wtr-general] Re: browser.attach

2008-12-04 Thread Bret Pettichord
Where do you see that it is not supported? aidy lewis wrote: Hi, On the wiki I am informed that the browser.attach method is not supported in 1.6.2 What alternative method can I use to hook onto an existing browser? Aidy --~--~-~--~~~---~--~~ You

[wtr-general] Re: firefox on mac not quitting

2008-12-03 Thread Bret Pettichord
. The b.close call closes the newly opened firefox window but never returns on its own. If I close ff now manually, the b.close call returns showing: = #Thread:0x1a39b38 dead Hope this helps! Any ideas are appreciated! Matthias On 2 Dez., 17:27, Bret Pettichord [EMAIL PROTECTED] wrote

[wtr-general] Re: Getting error at installing 1.6.1

2008-12-03 Thread Bret Pettichord
-2.1.2... Installing RDoc documentation for user-choices-1.1.6... Installing RDoc documentation for commonwatir-1.6.2... Installing RDoc documentation for firewatir-1.6.2... Installing RDoc documentation for watir-1.6.2... C:\Documents and Settings\Chuckv On Nov 11, 1:32 pm, Bret Pettichord

[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-12-03 Thread Bret Pettichord
, Dec 2, 2008 at 6:23 PM, Bret Pettichord [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The reason that enabled popup is in contrib is to indicate that it is unsupported code. I've never used Watir's modal dialog support for production testing (except

[wtr-general] Re: FireWatir: Link click error

2008-12-02 Thread Bret Pettichord
1. Your stack trace indicates that you are using FireWatir 1.2.0, not 1.6.1 2. Your stack trace error is inconsistent with the code you provide. Please double check the actual code on line 25 of Accounts.rb Bret Girish Jindal wrote: Hello, I am facing an issue using FireWatir. FireWatir is

[wtr-general] Re: firefox on mac not quitting

2008-12-02 Thread Bret Pettichord
Short answer: no. Dave Hoover says this is browser.quit in SafariWatir. Similar is IE.close_all. We need to figure out what to do to be consistent. Regardless, this problem should not be causing your scripts not to return. Can you provide more information? Something else may be happening.

[wtr-general] tip of the day: puts does an implicit to_s

2008-12-02 Thread Bret Pettichord
In three separate threads recently, people have been confused because what they see with puts doesn't match with what they are testing in an if statement e.g. puts foo hello but if foo == hello this_is_never_called end The problem stems from the fact that puts is actually

[wtr-general] Re: Updating RubyForge info for Watir?

2008-12-02 Thread Bret Pettichord
Info has been updated to say Watir supports IE and Firefox. News for 1.6.2 were accidently called 1.6.1 and as far as i know this can't be edited. Beta? I dunno. What do you suggest we call it? Bret Chuck vdL wrote: Is this on the todo list? I was just there and noticed that the info

[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-12-02 Thread Bret Pettichord
this enabled_popup thing to deal with modal dialogs? In that case, how DO we deal with modal dialogs? thanks, Lisa On Thu, Nov 13, 2008 at 11:06 AM, Bret Pettichord [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: i've added the require statement to the enabled popup script itself, so

[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Bret Pettichord
Thanks for sharing your report. I looked at Ruby in Steel over a year ago and it sounds like it has made a lot of progress since then. Back then, our developers were using Visual Studio as well. I agree that it is very attractive for this kind of environment. Bret Chuck vdL wrote: I'm

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-01 Thread Bret Pettichord
This works for me, although I am using ie 6.0. I'm wondering if this is broken with ie 7. Can any one else try this out? Bret patrick wrote: hi, i am using the foll versions: win xp sp2 ruby - 1.8.6 watir - 1.6.2 ie - 7.0 my code is as follows: irb require watir browser =

[wtr-general] Re: Click_no_wait for firewatir

2008-12-01 Thread Bret Pettichord
I've added this to the compatiblity issues table. http://wiki.seleniumhq.org/display/WTR/Firewatir+Compatibility aidy lewis wrote: On 28/11/2008, al3kc [EMAIL PROTECTED] wrote: Hi all, Does click_no_wait method exists in firewatir? I didn't found it in firewatir sorce files and it

[wtr-general] Re: indexes with watir and firewatir

2008-12-01 Thread Bret Pettichord
I get the following error: c:/ruby-186-26/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_exists': Unable to locate element, using :index, 0 (Watir::Exception::UnknownObjectException) from (eval):2:in `html' from index.rb:6 Is this what you are seeing? aidy

[wtr-general] Re: Help required : Ruby code error

2008-12-01 Thread Bret Pettichord
Aidy, Could you please create a wiki page with your list of editors. I thought we had a page started, but I can't seem to find it. It would be great to collect people's thoughts on the pros and cons of these editors for watir test development. Bret aidy lewis wrote: Hi Natasha, Below is

[wtr-general] Re: get text from page (regex) assign to variable

2008-12-01 Thread Bret Pettichord
The thing to remember is that puts does an implicit to_s (or inspect, i can't remember exactly) on its argument. Bret Sameh Abdelhamid wrote: Very nice. Thanks Wes. I couldnt find this anywhere! Cheers. On Wed, Nov 26, 2008 at 3:38 PM, wesley chen [EMAIL PROTECTED] mailto:[EMAIL

[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)

2008-12-01 Thread Bret Pettichord
aidy lewis wrote: However there are many new Watir potential users who might just know it as a Ruby test tool. Right. And now that Ruby is becoming a popular app language, I think people might think the R is Watir refers to the target application.

[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Bret Pettichord
Chuck vdL wrote: (and if these things get stuff working, do I need to raise a jira issue for this so we make sure to make these changes in the watir source? (point me at instructions for this if they exist, so I do it 'right' I'm used to using Jira at work, but in my experience every

[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Bret Pettichord
Please do note that all of the examples you've found so far represent correct Ruby code. In many cases with Ruby, parentheses are optional. It might be best if you reported your findings to the Ruby in Steel people so that they can fix their parser. Bret Bret Pettichord wrote: Chuck vdL

[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Bret Pettichord
My preferred ruby style is (1) not to include parentheses when they are optional, and (2) not to pad them with extra spaces when they are used. Bret Chuck vdL wrote: Brett, ACK I'm still at babysteps level of ruby coding and you're trying to turn me into a contributor aren't you ;) ok

[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)

2008-11-24 Thread Bret Pettichord
I don't want to answer Paul's questions for him, but everyone should understand that Watir is not for Ruby applications. It is for web applications written in any language. It works great for .Net applications. Bret aidy lewis wrote: Hi, For the other one, I was asked to automate an

[wtr-general] Re: HTML report class

2008-11-19 Thread Bret Pettichord
JArkelen wrote: I added a HTML report class example to the wiki: http://wiki.seleniumhq.org/display/WTR/HTML+report+class This class can be used to create a HTML report of a test script execution. thanks for sharing this. could you attach a sample report to the wiki page? that will make

[wtr-general] Re: Creating a test suite script

2008-11-18 Thread Bret Pettichord
1. I don't know why it is using firefox 2. With the way you've structured your tests, you should start the browser in the setup file, not in each test file. That way you'll only have one. Bret Natasha wrote: Hi All, WATIR: 1.6.2 I tried creating a wrapper script after refering to the unit

[wtr-general] AWTA 2009

2008-11-18 Thread Bret Pettichord
Many of you know that every year or two I hold an event called the Austin Workshop on Test Automation. It brings together a small group of people to have detailed discussions. This January we are meeting again and we are focussing on Watir and the Organization. If you might be interested in

[wtr-general] OpenQA and Watir.com

2008-11-18 Thread Bret Pettichord
Many of you have noticed that openqa.org is not seleniumhq.org. This change was made earlier this week. This was something that we've known was coming for some time. At the same time, authentication for confluence and jira stopped working. This is a bug and we expect it to be fixed soon. For

[wtr-general] Re: OpenQA and Watir.com

2008-11-18 Thread Bret Pettichord
Er, I meant to say openqa.org is NOW seleniumhq.org. Bret Pettichord wrote: Many of you have noticed that openqa.org is not seleniumhq.org. This change was made earlier this week. This was something that we've known was coming for some time. At the same time, authentication for confluence

[wtr-general] Re: Should Tutorial and Quickstart be updated to use Watir::Browser?

2008-11-16 Thread Bret Pettichord
+1 Chuck vdL wrote: right now both of them are very IE specific Shouldn't they be changed to reflect the new integration with Firewatir and altered so that * They use Watir::Browser instead of Watir::IE * show how to set the browser type * use an a generic name for the browser object

<    1   2   3   4   >