[wtr-general] Re: how to stop ie thread?

2009-08-10 Thread Alex.Dev
I found a way. Popup an alert when click pause button. but this is not a googld solution, if you have a good one, please share your idea, def btn_evt(event) if @button1.get_label =~ /pause/ @button1.set_label('resume') ie.document.parentWindow.execScript(alert('click to

[wtr-general] Re: How to judge the button or link exists in the page?

2009-08-10 Thread yuping zhong
Yet,It works fine,thanks for all of your guys! On Aug 8, 10:14 am, Marlon Mojares marlonmoja...@gmail.com wrote: I hope this helps *if link:* begin     assert(ie.link(:name,Signout).exists?)     puts login successfully rescue = e      puts login failed + e.message + \n +

[wtr-general] Large Enterprise Windows Application

2009-08-10 Thread KiranD
Hi Guys, We have Windows based large database application for testing. Is there any way to test these types of applications using ruby? Please guide. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Re: Issue with a PopUP and Click_No_Wait

2009-08-10 Thread Pallavi Sharma
hi i tried object click no wait command, and after it clicks on it,, it shows a pop up after almost 60 seconds... has everyone seen this... thanks On Mon, Aug 10, 2009 at 10:38 AM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Dylan Version is: ruby 1.8.6 (2007-09-24 patchlevel 111)

[wtr-general] Re: Dynamically generated elements on Ajax app

2009-08-10 Thread H Kogi
Sorry that my last email was cutoff. I was able to interact using :text for a number of controls and tabs. Certainly this will not be my last issue on ajax application but I will search the group and then will start a new thread for a new issue. At this point, the development will not change

[wtr-general] Re:please let me know how to identify whether the chechk box present in the page is checked or unchecked

2009-08-10 Thread ravilla
I got one problem while running the automation script: I am having 20 checkboxes in a page .NOw i want check that whether each check box is checked or unchecked.if it is checked i want to print a message. Snippet of code that i used is: require 'watir' require 'win32ole' require'rubygems'

[wtr-general] Re: RDoc files on rubyforge need to be updated

2009-08-10 Thread Bret Pettichord
They are updated to 1.6.2. Why do you say they aren't updated? Bret On Aug 9, 9:13 pm, Brandon bfalo...@gmail.com wrote: These docs are still at 1.5.6 and need to be updated...http://wtr.rubyforge.org/rdoc/ Please let me know if I can assist... Brandon

[wtr-general] Re: watirspec

2009-08-10 Thread Bret Pettichord
This looks handy. I would like to have these tests run on watirbuild.com, once i get that up and running again. On Aug 7, 12:40 pm, Jari Bakken jari.bak...@gmail.com wrote: I've factored out the bulk of Celerity's rspec suite to a separate project, available on GitHub at  

[wtr-general] Re: Watir on Ruby 1.9.1

2009-08-10 Thread Bret Pettichord
On Aug 6, 7:18 pm, Jari Bakken jari.bak...@gmail.com wrote: Bret: Any chance of getting watirbuild.com back up again? I'll see if i can get on this this week. Thanks for your work on the 1.9.1 support. --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] Re: Watir on Ruby 1.9.1

2009-08-10 Thread Michael Hwee
This is so great, Jari. Thanks for working on this. - Original Message From: Jari Bakken jari.bak...@gmail.com To: watir-general@googlegroups.com Sent: Sunday, August 9, 2009 3:49:59 AM Subject: [wtr-general] Re: Watir on Ruby 1.9.1 On Fri, Aug 7, 2009 at 2:18 AM, Jari

[wtr-general] ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem watir locally or in a repository

2009-08-10 Thread anna barbara ostrowska
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

[wtr-general] Re: please let me know how to identify whether the chechk box present in the page is checked or unchecked

2009-08-10 Thread Dylan
The only way I have been able to find is that the HTML of the checkbox changes when it is checked, adding CHECKED in there somewhere. You can check the html: checkbox(:id,YourID).html =~ /CHECKED/ Or you can add this function to your input_elements.rb file in the watir gem under the CheckBox

[wtr-general] Re: Testing Email

2009-08-10 Thread Paul Rogers
http://rubyforge.org/projects/rumbster/ works a treat! On Fri, Aug 7, 2009 at 8:35 PM, Darryl (gem dandy) Brown d-l-br...@roadrunner.com wrote: Hello Bret, I'm doing email testing on our web based monitoring cards. Currently using a tweaked version of the Python mock SMTP server -

[wtr-general] Cannot subclass Table

2009-08-10 Thread Jim Evans
As I mentioned in a previous message, I'm trying to model my application to enforce code reuse in my scripts. I think I've managed to find a way around the answer for my previous question, but I'm having a difficult time subclassing the Watir::Table class. If I try the following: require watir

[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

2009-08-10 Thread Charley Baker
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,

[wtr-general] Re: RDoc files on rubyforge need to be updated

2009-08-10 Thread Jari Bakken
On Mon, Aug 10, 2009 at 4:46 PM, Bret Pettichordbpettich...@gmail.com wrote: They are updated to 1.6.2. Why do you say they aren't updated? Bret As a side note, It's pretty easy to get docs auto-generated on GitHub: http://docs.github.com/ http://rdoc.info/

[wtr-general] Re: Trouble testing dynamically-created HTML

2009-08-10 Thread Bret Pettichord
I just took a quick look at the Watir code (latest from trunk). I see an include? method but not an includes? method. Bret On Aug 5, 9:32 am, Burdette Lamar burdettela...@yahoo.com wrote: I’ve been having a lot of trouble with stuff that Javascript builds in the DOM after the complete HTML

[wtr-general] Re: Modeling web pages and table rows

2009-08-10 Thread Bret Pettichord
Can you show us what you tried? On Aug 10, 9:07 am, Jim Evans jim.ev...@numarasoftware.com wrote: I have a web application that I'm trying to create a model of in Watir, to encourage code reuse in the scripts, and I've hit a little snag. I have a table on the main page of the application, the

[wtr-general] Re: Cannot subclass Table

2009-08-10 Thread Bret Pettichord
Add this line to your script: require 'watir/ie' Bret On Aug 10, 1:03 pm, Jim Evans jim.ev...@numarasoftware.com wrote: As I mentioned in a previous message, I'm trying to model my application to enforce code reuse in my scripts. I think I've managed to find a way around the answer for my

[wtr-general] How to run 2 different scripts at the same time?

2009-08-10 Thread Marlon
Hi, anyone here knows how to run multiple scripts at the same time? I wanted run for example 2 different scripts concurrently, Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group.

[wtr-general] Re: How to run 2 different scripts at the same time?

2009-08-10 Thread Dylan
You can do this in ruby with threads (http://ruby-doc.org/core/classes/ Thread.html) although you need to be very careful that the two threads don't interfere. -Dylan On Aug 10, 7:44 pm, Marlon marlonmoja...@gmail.com wrote: Hi, anyone here knows how to run multiple scripts at the same time? I

[wtr-general] Re: How to run 2 different scripts at the same time?

2009-08-10 Thread Marlon
for example: require 'thread' require 'watir' class search def test_google ie = Watir::IE.start('http://www.google.com') ie.text_field(:name, q).set(pickaxe) ie.button(:value, Google Search).click ie.close end def test_yahoo ie =