On Tue, Jun 9, 2009 at 1:28 PM, Durgesh Nadkarni <fordurg...@yahoo.co.in>
wrote:
>                 <a href="javascript:"
onclick="searchNextResultPageInSubject(document.forms['frmReSearch'], -1,
'');return false;">Prev</a>

So, you want to check if this link exists, do something, and see if the link
does not exist? (Code not tested.)

puts "life is good" if browser.link(:text, "Prev").exists?
# do something that converts link to text
puts "uh oh" if browser.link(:text, "Prev").exists?

Željko

--~--~---------~--~----~------------~-------~--~----~
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
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to