Class: TestSteps::Handlers::CheckUrl

Inherits:
Base
  • Object
show all
Defined in:
lib/functions/handlers/check_url.rb

Overview

Check URL function.

Instance Method Summary collapse

Methods inherited from Base

#initialize, #login_check, #login_process, #mem_word_check, #open_url_process, perform, #portal_mem_word, register

Constructor Details

This class inherits a constructor from TestSteps::Handlers::Base

Instance Method Details

#performObject



11
12
13
14
15
16
17
18
19
# File 'lib/functions/handlers/check_url.rb', line 11

def perform
  if Browser.b.url == @value
    MyLog.log.info("URL: #{@value} is correct")
    true
  else
    MyLog.log.warn("URL: #{@value} is incorrect")
    false
  end
end