Module: BrowserStackCucumber
- Defined in:
- lib/browserstack/version.rb,
lib/browserstack/wait_until.rb,
lib/browserstack/with_rescue.rb,
lib/browserstack/browserstack.rb
Defined Under Namespace
Modules: RetryHelper, WaitUntil
Classes: Config
Constant Summary
collapse
- VERSION =
'0.1.1'
Class Method Summary
collapse
Class Method Details
.around_hook_impl(scenario, block) ⇒ Object
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
# File 'lib/browserstack/browserstack.rb', line 183
def around_hook_impl(scenario, block)
my_browser = BrowserStackCucumber::Config.init_browser(scenario)
unless scenario.instance_of? ::Cucumber::Ast::OutlineTable::ExampleRow
scenario.steps.each do |step|
step.instance_variable_set(:@skip_invoke, false)
end
end
block.call
BrowserStackCucumber::Config.close_browser
end
|
.at_exit_impl ⇒ Object
219
220
221
222
223
|
# File 'lib/browserstack/browserstack.rb', line 219
def at_exit_impl
::BrowserStackCucumber::Config.close_browser_force
end
|
.before_hook_impl ⇒ Object
176
177
178
179
180
|
# File 'lib/browserstack/browserstack.rb', line 176
def before_hook_impl
@browser = BrowserStackCucumber::Config.browser
end
|