[wtr-general] Re: handling popups

2009-08-05 Thread Angrez Singh
one more thing: > $ie.text_field(:name,"text1").set("This is the text in the popup") > $ie.button(:name,"submit").click > check_for_popups("Microsoft Internet Explorer", "OK") > You should be using "click_no_wait()" for handling the pop ups. Else your script will get block. Basic idea is to use "

[wtr-general] Re: Verify does not work while checking the links.

2009-08-05 Thread Yuvraj Jagadale
Agree with you that its an instance variable. But is there any way to resolve the issue? Thanks, Yuvraj On Wed, Aug 5, 2009 at 9:50 PM, Dylan wrote: > > Well, I'm not sure if this is your problem but that isn't a global > variable, its an instance variable. Global variables start with "$" > > -D

[wtr-general] Re: Watir on Ruby 1.9.1

2009-08-05 Thread Jari Bakken
I figured out the WIN32OLE issue - all the tests are now passing on 1.9. --~--~-~--~~~---~--~~ 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 Befor

[wtr-general] Dynamically generated elements on Ajax app

2009-08-05 Thread HK
I am trying to automate testing on Ajax applications and only using Watir for 7 weeks. Majority of elements are dynamically generated. Values for id's keep changing and class values are not unique. Does anyone have suggestions how to deal with them? Some sample below.   some text here

[wtr-general] Watir on Ruby 1.9.1

2009-08-05 Thread Jari Bakken
Hello, I've made some progress getting Watir to run on Ruby 1.9.1 using the preview installer provided by the RubyInstaller guys ( http://rubyinstaller.org/downloads/). A recent benchmark comparing the various interpreters on Windows ( http://antoniocangiano.com/2009/08/04/a-faster-ruby-on-window

[wtr-general] Re: graph/charts

2009-08-05 Thread anna barbara ostrowska
thx guys 2009/8/4 George > > Might want to check out this site: > > http://rubyonwindows.blogspot.com/ > > > > On Aug 4, 12:38 pm, anna barbara ostrowska > wrote: > > Hi there, > > Can you recommend me any tool/ruby library that allows me convert data > > (metrics) to graph/charts ect? > > Than

[wtr-general] Re: Verify does not work while checking the links.

2009-08-05 Thread Dylan
Well, I'm not sure if this is your problem but that isn't a global variable, its an instance variable. Global variables start with "$" -Dylan On Aug 5, 2:51 am, Yuvraj wrote: > Hi, > > I have installed the ruby 1.8.6 and WATIR 1.6.2. > > I am checking whether a link is active or not with the fo

[wtr-general] Trouble testing dynamically-created HTML

2009-08-05 Thread Burdette Lamar
I’ve been having a lot of trouble with stuff that Javascript builds in the DOM after the complete HTML page is returned. I’ve tried to counter that with extreme defensiveness. For example, this extension to Watir::SelectList is meant to bullet- proof SelectList#select against Javascript that’s b

[wtr-general] Re: hw to handle java script popups

2009-08-05 Thread Angrez Singh
please don't post the same message with different subjects. On Wed, Aug 5, 2009 at 11:29 AM, supriya wrote: > > sir i tried this code : > > > > require 'rubygems' > require 'watir' > require 'watir/ie' > require 'watir\contrib\enabled_popup' > require 'win32ole' > > $ie=WATIR.IE.new > def check_

[wtr-general] Re: handling popups

2009-08-05 Thread Angrez Singh
I think the error is self explanatory: > $ie=WATIR::IE.new the errors: > >ruby testingpopup2.rb > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/ > dependencies.rb:443:in `load_missing_constant': uninitialized constant > WATIR (NameError) >from C:/Ruby/lib/ruby/gems

[wtr-general] handling popups

2009-08-05 Thread supriya
i am using ruby 1.8.6 and watir 1.6.2 here am using this code to click ok button of the java script popup generated after clicking a button ,but it is not working..it is throwing errors require'rubygems' require 'watir' require 'watir/ie' require 'watir\contrib\enabled_popup' require 'win32ole

[wtr-general] hw to handle java script popups

2009-08-05 Thread supriya
sir i tried this code : require 'rubygems' require 'watir' require 'watir/ie' require 'watir\contrib\enabled_popup' require 'win32ole' $ie=WATIR.IE.new def check_for_popups(title="Microsoft Internet Explorer", button="OK") popup=Thread.new { autoit=WIN32OLE.new('AutoItX3.Control')

[wtr-general] Verify does not work while checking the links.

2009-08-05 Thread Yuvraj
Hi, I have installed the ruby 1.8.6 and WATIR 1.6.2. I am checking whether a link is active or not with the following verify statement. verify((browser.link(:text, "1").exists?), message="Link not active.") The above statement works fine. But when I use the above statement with global variabl

[wtr-general] Re: graph/charts

2009-08-05 Thread Anna Gabutero
> On Aug 4, 12:38 pm, anna barbara ostrowska > wrote: > > Hi there, > > Can you recommend me any tool/ruby library that allows me convert data > > (metrics) to graph/charts ect? Take a look at Gruff: http://nubyonrails.com/pages/gruff --~--~-~--~~~---~--~~ You r