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

2009-02-12 Thread Ben
I tried to completely uninstall (using gem uninstall packagename) and re-install win32-* gems, windows-* gems and Watir.. I still have the same problem. Here's my gem list : *** LOCAL GEMS *** activesupport (2.2.2) builder (2.1.2) commonwatir (1.6.2) firewatir (1.6.2) fxri (0.3.6) fxruby

[wtr-general] RE: Free Git and GitHub Course

2009-02-12 Thread Al Snow
Since Watir and SafariWatir have moved to GitHub, I wanted to share this information about a free course (Git and GitHub): It happens between Feb 21 and 27. http://rubylearning.com/blog/2009/02/10/git-and-github-a-free-course/ FYI, Al Snow --~--~-~--~~~---~--~~

[wtr-general] How to Drag and Drop with Watir?

2009-02-12 Thread Bill Mosteller
30 June 2006, dannyy wrote: We are able to write very robust and concise test cases, such as automating drag-and-drop without knowing how such behavior is implemented. I'm wondering what he's talking about? I've successfully written drag and drop scripts in SilkTest and Selenium, but doing so

[wtr-general] Re: On Error Resume Next - Equal statement in Ruby

2009-02-12 Thread Michael Hwee
This is the same as Exception handling. begin ... rescue ... end - Original Message From: Prince3105 prince3...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, February 11, 2009 11:11:36 PM Subject: [wtr-general] On Error Resume Next - Equal statement in

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

2009-02-12 Thread Bret Pettichord
Maybe. You should talk to Daniel Berger, who maintains the windows gems. I don't think he reads this list. djber...@gmail.com Bret Ben wrote: Ok... I tried a brand new installation of Ruby and Watir on a fresh win xp install using a VMWare virtual machine and everything works perfectly...

[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
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/api.so: 126: The specified module could not be found. - C:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.3.0-x86-mswin32-80/lib/win32/api.so

[wtr-general] Re: Drop down Contents

2009-02-12 Thread Alex Collins
You can compare arrays very easily in ruby use the == method. I think order matters so you might wish to sort (.sort) your array. There is a method on a select box to get all of the options ( .options() ). This returns an array. You can then store your expected results in an array and

[wtr-general] Verify text on a popup

2009-02-12 Thread Jason Shelton
All, I have read the tutorial about killing a 'Windows Internet Explorer' javascript popup, but I am writing to ask if there is a way to verify the text on these popups first, with a method similar to .contains_text? If this question is not clear, I can elaborate. Thanks in advance. -

[wtr-general] Re: Drop down Contents

2009-02-12 Thread Alex Collins
Interesting. I found the options() method from the rdoc. However, I do not get the behaviour I expect. Use getAllContents() instead; this does return an array, as expected. Alex On 12 Feb 2009, at 19:15, Jason Shelton wrote: I tried the following code, and I am getting the undefined

[wtr-general] Re: Verify text on a popup

2009-02-12 Thread Jason Shelton
I have searched through the archives, but have not been able to find any examples of what I am looking for. I have never used autoit, so are there any ways to do this without it? I am willing to learn it if necessary. Thanks in advance. - Shelton Date: Thu, 12 Feb 2009 12:54:20 -0800

[wtr-general] Re: Verify text on a popup

2009-02-12 Thread Bill Agee
The AutoIt function name WinGetText should be a good keyword to google to see some useful example code. Here's a Watir list thread from earlier this year about it: http://groups.google.com/group/watir-general/browse_thread/thread/5b6f529b16616bbc?pli=1 And a Watir wiki page that shows a little

[wtr-general] Re: Free Git and GitHub Course

2009-02-12 Thread Jeff Fry
Al and Marekj, thanks for the links! On Thu, Feb 12, 2009 at 1:01 PM, marekj marekj@gmail.com wrote: I updated 2 concepts in the latest intro slides. 1) git config and autocrlf - point to path/to/etc/gitconfig as the global and the defualt autocrlf = true setting - point to

[wtr-general] Re: Verify text on a popup

2009-02-12 Thread Jason Shelton
Thanks, autoit is definitely something I will begin to utilize. My issue now is that script that causes the popup to prompted, stops whenever the popup is prompted, so the code after if(the autoit code) is not executed until the popup is canceled. I can elaborate if necessary. Thanks in

[wtr-general] Re: Verify text on a popup

2009-02-12 Thread Bill Agee
Yeah, that blocking behavior is a common problem. It seems at the moment the easiest way to get around that is to execute the code to handle the popup in a separate process. To experiment with this you can put the popup handling code in its own script, verify that it works as expected when run

[wtr-general] Where to hold public training?

2009-02-12 Thread Pete Dignan
The first public training class on Watir (including the new WatirCraft framework) is March 25-26 in Austin TX. We're discussing where to hold additional public classes after that. Portland OR has been mentioned. Bay Area? Chicagoland? We're looking for suggestions based on need. Pete

[wtr-general] wait_until{).exists? } || wait_until{).exists?

2009-02-12 Thread niartseoj
I'm trying to figure out how to use an OR statement between two wait_unti{exist?} Steps/Scenario is as follows: 1. Page with Link 2. Click Link 3 Opens Confirmation 4. Click button in popup 5. Page does a postback in javascript. At this point I need to wait until the page is re-reendered

[wtr-general] Re: Where to hold public training?

2009-02-12 Thread niartseoj
how about Washington DC? or someplace off GREEN BELT turnpike in Reston Virginia bring the show to the east PLEASE On Feb 12, 5:57 pm, Pete Dignan p...@watircraft.com wrote: The first public training class on Watir (including the new WatirCraft framework) is March 25-26 in Austin TX.  We're

[wtr-general] Re: wait_until{).exists? } || wait_until{).exists?

2009-02-12 Thread Richard Lawrence
The whole condition, with the OR, goes in the block. Like this: Watir::Waiter.wait_until{ ie.p(:id,'savewarning').exists? || ie.p(:id,'saveconfirm').exists? } Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal Consultant, Humanizing Work, LLC 303-895-7688

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

2009-02-12 Thread jensen2525
I ran into a similar issue and was able to work around it by calling click! instead of click or click_no_wait. We're not using SproutCore so this may not be relevant to your issue. ## snip # Click on the Export button then Save the file as an artifact export =

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

2009-02-12 Thread malar
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, c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ core_ext/module/introspection.rb:70:in `const_get': no such

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

2009-02-12 Thread wesley chen
Try require File.dirname(__FILE__)+'/../***.rb Thanks. Wesley Chen. On Fri, Feb 13, 2009 at 12:46 PM, malar malar.je...@gmail.com 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

[wtr-general] Variable expansion inside XPath syntax

2009-02-12 Thread Jason
I seem to get myself stuck every Friday evening with seemingly trivial Watir / Ruby problems. Here's this week's problem. I'm struggling to match by XPath with a variable inside the xpath syntax. The following works perfectly: $browser.element_by_xpath(//dl/dt[contains(text