D
Darin Duphorn
I need to get the text to verify the correct popup appeared
I also need to verify the button I want to click exist on the popup
Below is the code.
#Click Button
$ie.button($attribute_nm.to_sym,$attribute_val).click_no_wait
dialog = Watir:ialog.new
puts dialog
# Need to be able to poll window to exist
sleep 0.4
if dialog.exists?
?how can I get the dialog text?
if dialog.buttonname,"OK").exists? ?How can I validate OK exist on
dialog?
dialog.button('OK').click #click OK button
else
dialog.close #close if button doesn't exist
end
end
Thanks,
DD
I also need to verify the button I want to click exist on the popup
Below is the code.
#Click Button
$ie.button($attribute_nm.to_sym,$attribute_val).click_no_wait
dialog = Watir:ialog.new
puts dialog
# Need to be able to poll window to exist
sleep 0.4
if dialog.exists?
?how can I get the dialog text?
if dialog.buttonname,"OK").exists? ?How can I validate OK exist on
dialog?
dialog.button('OK').click #click OK button
else
dialog.close #close if button doesn't exist
end
end
Thanks,
DD