assert($browser.link(:text,"Signout")exists?),"The sign-out link is absent")
On Fri, Aug 7, 2009 at 2:25 PM, yuping zhong <[email protected]>wrote: > Dear all, > Right now, I want to use the watir to check the button or link if exists in > the page. Who can help me? > > Such as, I write the watir code to login the gmail. In order to make sure I > login successfully, I try to check whether the "Sign Out" link is exists in > the page. > If the "Sign Out" link is exists,puts "login successfully",else puts "login > failure". > > But how to write the code? It is easy If check the TEXT in the page, what > should I do about the LINK or BUTTON? > > Thanks for anyone replys. > > Best Wishes! > > -Zhong > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
