Thanks a lot mahesh,Usman and Keith for ur replies i will try this On Tue, Sep 14, 2010 at 3:11 PM, Keith Hughes <khughe...@gmail.com> wrote:
> Kartheek > This should work, > > require 'watir/testcase' > require 'watir-webdriver' > class Test_google_ff <Watir::TestCase > def setup > @Browser = Watir::Browser.new(:firefox) > @Browser.goto "http://www.google.com" > end > def test_google1 > verify(@Browser.button(:name,"blah").exist?,"Dude where's my button") > end > def teardown > @Browser.close > end > end > > rgds > Keith > On Tue, Sep 14, 2010 at 7:18 AM, chunchu kartheek < > chunchukarth...@gmail.com> wrote: > >> Hi , >> >> Can anyone help me how to use verify method . I want to verify whether >> a link exists or not in a page. Want to display error message if does >> not exist. >> >> Thanks in advance >> >> Regards, >> Kartheek >> >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> You received this message because you are subscribed to >> http://groups.google.com/group/watir-general >> To post: watir-general@googlegroups.com >> To unsubscribe: >> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> >> > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > To post: watir-general@googlegroups.com > To unsubscribe: > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com