Displaying 2 results from an estimated 2 matches for "is_text_present".
2006 Sep 07
0
Dead easy Watir AND Selenium
...://www.google.no", 10000)
    @browser.start
    @browser.open(''http://www.google.no'')
  end
  specify "should find rspec''s home page" do
    @browser.type "name=q", "rspec"
    @browser.click_and_wait "name=btnG"
    @browser.is_text_present("rspec.rubyforge.org").should_be(true)
  end
  specify "should not find Ali G when I search for rspec" do
    @browser.type "name=q", "rspec"
    @browser.click_and_wait "name=btnG"
    @browser.is_text_present("Ali G").should_be(false)...
2012 Feb 14
0
undefined method `assert' error appears while running the code
...ly some
validations for login section.
Following is the code on which I am getting error.
@selenium.click "id=loginCloseButton"
    @selenium.click "css=#lnkLogin > span"
    @selenium.click "//button[@id='''']"
      begin
        assert @selenium.is_text_present("* Please provide your email
address")
        rescue Test::Unit::AssertionFailedError
        @verification_errors << $!
      end
I am getting following error while running the code:
undefined method `assert'' for #<Object:0x298f9e8> (NoMethodError)
Please help me...