FW3/fw3_actions.rb
# Check the web page title is as expected
Check the web page title is as expected
Check the web page title is as expected
def validate_page_title
  if @driver.title != @expectedResult then
        failedTest                    
        fail_message = "[FAIL] Title was #{@driver.title}, but we expected #{@expectedResult}"
          puts fail_message
          @testLog.puts("#{@originalTestCaseTitle} \n #{fail_message}")
   else 
     pass_message = "[PASS] Title was as expected"
        puts pass_message
        @testLog.puts("#{@originalTestCaseTitle} \n #{pass_message}")
  end
end
def validate_page_title if @driver . title != @expectedResult then failedTest fail_message = "[FAIL] Title was #{@driver.title}, but we expected #{@expectedResult}" puts fail_message @testLog . puts ( "#{@originalTestCaseTitle} \n #{fail_message}" ) else pass_message = "[PASS] Title was as expected" puts pass_message @testLog . puts ( "#{@originalTestCaseTitle} \n #{pass_message}" ) end end
Check the web page title is as expected
Check the web page title is as expected
#fw3_global_methods