Class: Maze::Hooks::BrowserHooks
Overview
Hooks for Browser mode use
Instance Method Summary
collapse
#after, #before, #pre_complete
Instance Method Details
#after_all ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/maze/hooks/browser_hooks.rb', line 14
def after_all
@client&.log_run_outro
rescue => error
Bugsnag.notify error
raise
end
|
#at_exit ⇒ Object
22
23
24
|
# File 'lib/maze/hooks/browser_hooks.rb', line 22
def at_exit
@client&.stop_session
end
|
#before_all ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/maze/hooks/browser_hooks.rb', line 6
def before_all
@client = Maze::Client::Selenium.start
rescue => error
Bugsnag.notify error
raise
end
|