Re: [wtr-general] Watir Unit Test

2018-01-12 Thread Titus Fortner
Page Objects should not be subclasses of TestCase Page Objects should not contain assertions, those belong in _step files require 'rspec' in env.rb to use RSpec matchers: Given(/^I am on the login page$/) do @login_page = Login.new expect(@login_page.gmail?).to eq true end def gmail?

[wtr-general] Watir Unit Test

2018-01-12 Thread 江南
I have the code below to verify a text on the website I want to know how to call the method '*test_verifyGmail*' in my Cucumber Step Definition file? #!/usr/bin/ruby require 'watir' require 'selenium-webdriver' require 'test/unit' require 'rubygems' class Login < Test::Unit::TestCase