Class: Maze::Hooks::BrowserHooks

Inherits:
InternalHooks show all
Defined in:
lib/maze/hooks/browser_hooks.rb

Overview

Hooks for Browser mode use

Instance Method Summary collapse

Methods inherited from InternalHooks

#after, #before

Instance Method Details

#after_allObject



10
11
12
# File 'lib/maze/hooks/browser_hooks.rb', line 10

def after_all
  @client&.log_run_outro
end

#at_exitObject



14
15
16
# File 'lib/maze/hooks/browser_hooks.rb', line 14

def at_exit
  @client&.stop_session
end

#before_allObject



6
7
8
# File 'lib/maze/hooks/browser_hooks.rb', line 6

def before_all
  @client = Maze::Client::Selenium.start
end