Re: [Wtr-general] hidden control..

2007-07-10 Thread mihai
exist method does not work, because the control exist but its hidden, and there is not a hidden? methodthat the reason for what ive asked if how i can find out that a control is hidden or not.. ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] hidden control..

2007-07-09 Thread mihai
i have this html code: input type=hidden how can i find out with watir if it is hidden or not? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] hidden control..

2007-07-09 Thread mihai
no...i want something like : ie.button(..).exist? but ie.button().hidden? i want to tell me if the control is hidden or not because that button and other control appear if i press the Show Advanced option button and hides if i press the Hide Advanced option and i want to test if the show..

[Wtr-general] $ie.button replacing with $ie.b?

2007-07-07 Thread mihai
cand i do something like this, and how: b=button puts $ie.b(:index,1) instead of puts $ie.button(:index,1) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] $ie.button replacing with $ie.b?

2007-07-07 Thread mihai
i want to do something like this: def check_elements(ie,elements,btn,lnk) for i in 1 .. elem[1,0] if ( ie.elements[0,0](:index,btn[i-1,0]).exist? and ie.elements[0,0](:value,btn[i-1,1]) and ie.elements[0,0](:name,btn[i-1,2]) ) then write(The button

[Wtr-general] click with autoit on OK button

2007-07-05 Thread mihai
i have this code: $ie1.radios.each do |chk| chk.focus if $ie1.button(:index,2).exist? then $autoit.BlockInput(1) $ie1.button(:index,2).click

Re: [Wtr-general] display errors without exiting the script?

2007-06-22 Thread mihai
tnx it works; i have another problem, please help i have this error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1787:in `method_missing': unknown property or method `document' (WIN32OLERuntimeError) HRESULT error code:0x80010108 The object invoked has disconnected

[Wtr-general] display errors without exiting the script?

2007-06-20 Thread mihai
i have a link in $ie wich opens me a new window i attach that window to a variable $ie1 like that: $ie1=IE.attach(:title, /bla bla bla/) and i must verify if that window really exist or not how do i do that because if that window exist is ok, but if is not exist the script is interrupted and

[Wtr-general] control existing IE window?

2007-06-18 Thread mihai
how can i control a already IE opened window for example if i have www.google.com window open but not with watir can i associate a variable $ie to that window an then click links etc using that variable? ___ Wtr-general mailing list

Re: [Wtr-general] control existing IE window?

2007-06-18 Thread mihai
tnx a lot ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] $ie show/hide?

2007-06-12 Thread mihai
can i hide my IE page while its being test? something like: $ie.hide #test command $ie.show ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] $ie.text.include? problem

2007-06-12 Thread mihai
i have this code: testSite = 'http://www.google.com' $ie = IE.new $ie.goto(testSite) if $ie.text.include?(Programs) then puts OK else puts CRAP end end and the output: OK OK OK why does 3 OK appears? how can i do that only one OK appear and how can i write the

Re: [Wtr-general] $ie.text.include? problem

2007-06-12 Thread mihai
but i need watir 1.5 because i'm working with some java scripts ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] sintax error

2007-06-09 Thread mihai
i search with a script all buttons on a page; if the name of a button is btnG then it must puts OK else NO the code is: $ie.buttons.each do |bbtns| puts bbtns.name if bbtns.name.equal?('btnG') then puts 'OK' else puts 'NO' end puts bbtns.value puts $i=$i+1 end but the

Re: [Wtr-general] click link in iframe?

2007-06-08 Thread mihai
no ideea? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] click link in iframe?

2007-06-08 Thread mihai
tnx, i had a problem with ie.show_frames...it didn't display the frame..now that it works i've solve my problem too just like u said with ie.frame(:index,xx).frame(:index,yy)... and so on ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] mouse right click?

2007-06-08 Thread mihai
can i send to a control mouse right click without using autoit? ..fireevent(rightclick) doesn't simulate right click on a html page ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread mihai
nobody can help me? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] click link in iframe?

2007-06-07 Thread mihai
i have this html code: table border=0 cellpadding=0 cellspacing=0 width=100% tr td colspan=2 class=PContent style=background-color: #FF; IFRAME src =

Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread mihai
that doesn't work Error: undefined method `area' for #Watir::IE:0x2e02304 (NoMethodError) watir code: require 'watir' #includes include Watir ie = IE.new ie.goto( 'http://www.squarebox.co.uk/scalc.html' ) sleep(5) ie.area(:href, /digit\(4\)/).click

[Wtr-general] run a javascript in html?

2007-06-06 Thread mihai
i have a scientific calculator made in java in a html; how do i test the buttons? when i want to press 5 it runs a javascript function digit(5) how do i call that function in watir? ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] run a javascript in html?

2007-06-06 Thread mihai
this is the page i want to test: [http://www.squarebox.co.uk/scalc.html|http://www.squarebox.co.uk/scalc.html] ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general