Hi! If you just want to see if the text is there this command will return true or false:
ie.text('My Test').exists? If you're looking to do test assertions throughout, you'll need to decide what kind of framework you want to use. The basic frameworks are Test::Unit and RSpec, but there are lots of others out there (Cucumber, Rasta and WatirCraft, to name a few). Most people these days are moving to RSpec, but some of us still use Test::Unit. There's lots on information available on each of these and some example frameworks on the wiki: http://wiki.openqa.org/display/WTR/Examples Hope this helps! -Tiffany On Nov 12, 2:09 pm, QAguy <qablogm...@gmail.com> wrote: > Does anyone have examples of assertions. For example how would I > assert that text on a page in either visible or invisible. > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---