I hope this helps
*if link:*
begin
assert(ie.link(:name,"Signout").exists?)
puts "login successfully"
rescue => e
puts "login failed" + e.message + "\n" + e.backtrace.join("\n")
end
*if button:*
begin
assert(ie.button(:name,"Signout").exists?)
puts "login successfully"
rescue => e
puts "login failed" + e.message + "\n" + e.backtrace.join("\n")
end
thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---