[wtr-general] Re: ERROR installing watir

2008-10-07 Thread Bret Pettichord
I've found that the gem installer works much better if you do a gem update --system. Unfortunately this can be hard to do also (for the same reasons). On one occassion, I did this update on a machine that did not have connection problems, then I copied the entire ruby directory to my other

[wtr-general] Re: check the pagetext

2008-10-13 Thread Bret Pettichord
Have you looked at browser.text? Personally, I always use this (or the text method on something more specific). I find the pagecontainstext method confusing. Bret bugs apple wrote: Hi, all As we known, pagecontainstext method could check the text that contained current page, including

[wtr-general] Re: Building a gem from trunk / watir-common

2008-10-16 Thread Bret Pettichord
You'll need to gem install hoe before building watir-common. And then you'll need to install it, before installing Watir. Bret Jeff Fry wrote: Corrected below On Wed, Oct 15, 2008 at 10:39 PM, Jeff Fry [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: OK, I'm getting closer - I've

[wtr-general] Re: Any good conferences this year about watir/ruby/rspec?

2008-10-16 Thread Bret Pettichord
I expect to announce an AWTA workshop to be held Jan 16-18 shortly. It will be in Austin and will focus on Watir. http://awta.wikispaces.com/ juuser wrote: Hello. Sorry for this little offtopic question, but I was wondering if anyone happens to know if there's any good conferences coming

[wtr-general] Re: Date Add or Subtract

2008-10-20 Thread Bret Pettichord
Here is some more cool stuff with dates. C:\watir-console 10.days.ago = Fri Oct 10 21:50:46 +0100 2008 1.month.from_now = Thu Nov 20 21:51:00 + 2008 2.weeks.since Time.local(2008,1,1) = Tue Jan 15 00:00:00 + 2008 Time.now - 1.day = Sun Oct 19 21:52:10 +0100 2008 Time.now +

[wtr-general] Re: How to Speed Up the wat ir ?

2008-10-21 Thread Bret Pettichord
Have you tried :zippy speed? Is this documented somewhere? You should know that there are some significant performance improvements in trunk and will be included in 1.6. Bret bugs apple wrote: Push it forward for you again. And expect your replies. 2008/10/20 bugs apple [EMAIL PROTECTED]

[wtr-general] Re: Google test automation conference

2008-10-22 Thread Bret Pettichord
You have to apply to attend and there are not that many seats available. So most people that want to go, don't tell others to improve their odds of getting chosen. Bret Michael Hwee wrote: Same here. Found out too late. --- On Wed, 10/22/08, Lisa Crispin [EMAIL PROTECTED] wrote:

[wtr-general] Re: click_no_wait doesn't work when called again

2008-10-23 Thread Bret Pettichord
What happens if you change the second call to click_no_wait to call click instead. Do you get an error? What is the error message? Bret babylonrei wrote: 2008/10/22 Bret Pettichord [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] What happens if you add a sleep statement at the location

[wtr-general] Re: How to determine a container type from a variable assignment

2008-10-23 Thread Bret Pettichord
, Thanks for taking time to help me. You were able to descripher my example perfectly and your suggestion works great. I learned a great deal from this example, thanks again for your time. On Oct 23, 12:04 pm, Bret Pettichord [EMAIL PROTECTED] wrote: Thanks for sharing your code. I

[wtr-general] Re: Problems using visible

2008-10-23 Thread Bret Pettichord
This code is IE specific. al3kc wrote: Should this work for FireWatir? I tried to change it for FireWatir::Element but it doesn't work. Željko Filipin [EMAIL PROTECTED] wrote: On Mon, Sep 8, 2008 at 5:48 PM, Bret Pettichord [EMAIL PROTECTED] wrote: I think you need to require

[wtr-general] Re: table row_count incorrect

2008-10-24 Thread Bret Pettichord
I've just added new method Watir::Table#row_count_excluding_nested_tables with this functionality. It will be in Watir 1.6. Bret Moochie wrote: Let's just use this and call it a day. #Get actual row count when enbedded tables exists def get_row_count_minus_enbedded_rows(table)

[wtr-general] Re: 'ruby-coding conventions'

2008-10-27 Thread Bret Pettichord
This looks pretty good, although I disagree with a few of the recommendations. http://www.caliban.org/ruby/rubyguide.shtml Bret aidy lewis wrote: Hi, My boss has just asked for a Ruby coding conventions document. I don't know of one; I know there are Ruby idioms outlined in 'The Ruby

[wtr-general] Re: Directory Comparison

2008-10-27 Thread Bret Pettichord
Everyday Scripting With Ruby, by Brian Marick, has a chapter describing, step by step, how to develop a program that compares files in directories. Bret [EMAIL PROTECTED] wrote: All, I am attempting to compare two file directories, both containing .xml files. If a filename is present in

[wtr-general] Re: RubyGem version error | Builder error.

2008-10-28 Thread Bret Pettichord
I have no idea what you are doing when you get this error. Some context would help. You could also try gem install hoe Bret High Bits Perf Tester wrote: When running through the tutorial Im getting this error: C:/Apps/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in `report_activate_error':

[wtr-general] Re: Problems using visible

2008-10-29 Thread Bret Pettichord
I opened up a ticket with your suggestion. Would you mind updating it with your latest code? http://jira.openqa.org/browse/WTR-262 Tony wrote: Was running the tests for some time .. and suddenly i started getting wrong results for visible. Look like the #{element_object} was returning null

[wtr-general] Re: IE.new_process does not work correctly with $HIDE_IE

2008-10-30 Thread Bret Pettichord
I spent some time researching this but could not find a fix. Bret Sergio Oliveira wrote: I need to run scripts concurrently, so each one has its own set of cookies, etc. In other words I need isolated sessions so that I can simultaneously log to different gmail accounts for example.

[wtr-general] Re: Can I change status of a test (in test unit)

2008-10-31 Thread Bret Pettichord
LanOK wrote: One of my tests always returns error, so I want to change it's status in to pass. I'm using test unit. Does anybody know how make test unit not to register an error in this test? If i have a bad test that i don't want to delete, i change its name to xtest_whatever. Then it

[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-31 Thread Bret Pettichord
the problem is occuring. Bret Bret Pettichord wrote: Good report. This shouldn't be happening. Let me figure out what is going on. Thanks for posting your workaround. Bret Tony wrote: While trying to run a testcase i keep getting an error - This is the script - require 'watir' Watir

[wtr-general] Watir 1.6.1 is available for testing

2008-10-31 Thread Bret Pettichord
I have built and uploaded Watir 1.6.1. This fixes all of the install/load problems reported by MarekJ and Tony, and in fact has a simplified install process. Details here http://wiki.openqa.org/display/WTR/Development+Builds Please let me know of any trouble with this. If it looks good, I

[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-31 Thread Bret Pettichord
ideas? Thanks! -Tiffany On Oct 31, 9:42 am, Bret Pettichord [EMAIL PROTECTED] wrote: I've reproduced the problem. Another workaround is to add gem 'watir' to the top of the script. I'm trying to understand more about why this is happening. As background, Watir 1.6 now autoloads

[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-31 Thread Bret Pettichord
Tiffany Fodor wrote: Hi again! I had previous versions of Watir installed (1.5.2 and 1.5.3) as well as 1.6.0. My problem went away when I uninstalled all of the versions and reinstalled 1.6.0. Interesting. This shouldn't be necessary, so I'd like to learn more about these problems

[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-31 Thread Bret Pettichord
of my tests on IE without any problems. :) -Tiffany On Oct 31, 1:57 pm, Bret Pettichord [EMAIL PROTECTED] wrote: Tiffany, I broke all of the watir/firewatir unit tests when run from gems. At this point you need to run them out of trunk. I'll update the 1.6. page. How

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-03 Thread Bret Pettichord
I've been testing with Ruby 186-26. Watir 1.5 also required win32-process (0.5.5). Can you give more information about how you are installing it? The gem installer should be automatically installing this gem. Bret JArkelen wrote: Hi, Which version of Ruby should I install to make Watir

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-04 Thread Bret Pettichord
As I just mentioned to Jim, IE is renaming the gems. You need to name them back to their original names. I've updated the notes on the download page. http://wiki.openqa.org/display/WTR/Development+Builds Bret Bret Pettichord wrote: JArkelen wrote: When I use the instructions from

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-05 Thread Bret Pettichord
/commonwatir-1.6.1/lib/ watir/browser. rb:65:in `new' from C:/unzipped/watirtest.rb:5 On Nov 5, 3:55 pm, Bret Pettichord [EMAIL PROTECTED] wrote: Great suggestion. Would you mind making this change? Bret --~--~-~--~~~---~--~~ You received

[wtr-general] Don't put include Watir at toplevel

2008-11-07 Thread Bret Pettichord
We've been recommending against using include Watir at toplevel for some time. With Watir 1.6, it will break scripts. Details: http://wiki.openqa.org/display/WTR/include+Watir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Re: Quick Start, Unit Tests, Server 2003 sp2

2008-11-07 Thread Bret Pettichord
be returning true on success and it's not? On Nov 3, 2:12 pm, Bret Pettichord [EMAIL PROTECTED] wrote: Thanks for the info. [EMAIL PROTECTED] wrote: Hey folks, apologies if this is not be proper venu for this info.. but I'm brand new to Watir and this group. Just starting out

[wtr-general] Re: Watir 1.6.2 has been uploaded to Rubyforge

2008-11-10 Thread Bret Pettichord
We run our unit tests on every change. The results are posted here. http://watirbuild.com/ As Marek said, the issue being discussed is about packaging the unit tests, not getting them to pass. Bret Chuck vdL wrote: On Nov 7, 8:43 am, Bret Pettichord [EMAIL PROTECTED] wrote: Comments

[wtr-general] Re: Tutorial Examples now 'missing'

2008-11-10 Thread Bret Pettichord
It is unclear to me what examples you mean. Examples that had been included in the 1.5 source tree were moved to the wiki. http://wiki.openqa.org/display/WTR/Examples Bret Chuck vdL wrote: I think I found them back on the 1.5 branch, but the trunk based links to the Examples folder given

[wtr-general] Re: Tutorial Examples now 'missing'

2008-11-10 Thread Bret Pettichord
http://svn.openqa.org/svn/watir/trunk/watir/examples/ On Nov 10, 7:51 am, Bret Pettichord [EMAIL PROTECTED] wrote: It is unclear to me what examples you mean. Examples that had been included in the 1.5 source tree were moved to the wiki.http://wiki.openqa.org/display/WTR/Examples Bret

[wtr-general] Re: Need help on installing Rails

2008-11-11 Thread Bret Pettichord
Or you can use Ruby 1.8.6 and Watir 1.6.2. The modal dialog support has been updated to work with Ruby 1.8.6. Alex Collins wrote: For the rails aspect, you should probably search / ask a rails group. However, you should be able to install two versions of ruby - and use a custom PATH

[wtr-general] Re: require firewatir in 1.6.2

2008-11-11 Thread Bret Pettichord
aidy lewis wrote: Do we still need to require 'firewatir' in 1.6.2. Probably not, although it doesn't hurt. And if not shall I 'gem unistall firewatir'? Only if you aren't going to use it. Although again it doesn't hurt to leave it. --~--~-~--~~~---~--~~

[wtr-general] Re: Help needed documenting Watir 1.6 roll out

2008-11-12 Thread Bret Pettichord
be included in a library for a browser driver. Bret Gavin Jefferies wrote: On Mon, Nov 10, 2008 at 7:24 AM, Bret Pettichord [EMAIL PROTECTED] wrote: First of all, I need help from some one who will read everything I post to this list. We are already getting several questions on this list which I

[wtr-general] Re: Firefox 2 : WATIR 1.6.2 and table operations

2008-11-12 Thread Bret Pettichord
We were not able to get table body support for firefox into this release. I have updated the compatibility matrix. Bret Natasha wrote: Hi All, I am using Watir 1.6.2 and was running my test on Firefox 2 for the first time. I found that the following code is not getting executed on

[wtr-general] Re: wait_until gives undefined method error

2008-11-12 Thread Bret Pettichord
I think the subject line is incorrect. Your problem is that your code to initialize the browser needs to be in a startup method. The error message you are getting is telling you that @ie is nil (because it has not been initialized). Bret maven999 wrote: Hi all, I am trying to write some

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

2008-11-12 Thread Bret Pettichord
the solution is to add require 'watir/ie' to your script jpweston wrote: After installing WATIR 1.6.2, scripts that have the following line: require 'watir/contrib/enabled_popup' are causing the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/

[wtr-general] Re: Firewatir (1.6.2) and select_list objects

2008-11-13 Thread Bret Pettichord
This sounds like a firewatir bug. Tiffany Fodor wrote: Hi! I apologize if you've already addressed this - I did a quick search of the threads and didn't see this issue. With Firewatir in version 1.6.2, I can't perform a 'set' on a select list, only 'select' works. The 'set' method works

[wtr-general] Re: Firewatir (1.6.2) and select_list objects

2008-11-13 Thread Bret Pettichord
Tiffany, Could you please log this as a Firewatir bug. Surprisingly we have no unit tests for either select_list().set (as i assumed) or select_list().select (which was a surprise). Bret Bret Pettichord wrote: This sounds like a firewatir bug. Tiffany Fodor wrote: Hi! I apologize

[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

[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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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:

  1   2   3   4   >