Class: TestSteps::Handlers::CheckUrl

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

Instance Method Summary collapse

Methods inherited from Base

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

Instance Method Details

#perform(step_attributes) ⇒ Object



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

def perform(step_attributes)
  url = step_attributes[:testvalue]

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