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
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
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..
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
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
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
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
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
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
tnx a lot
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
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
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
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
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
no ideea?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
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
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
nobody can help me?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
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 =
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
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
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
22 matches
Mail list logo