Module: Capybara::WSL
- Defined in:
- lib/capybara/wsl.rb,
lib/capybara/wsl/dsl.rb,
lib/capybara/wsl/version.rb
Defined Under Namespace
Modules: DSL
Classes: CannotDetectWSLPath, CapybaraWSLError
Constant Summary
collapse
- VERSION =
"1.0.3"
Class Method Summary
collapse
Class Method Details
.save_and_open_page(path = nil) ⇒ Object
14
15
16
17
18
|
# File 'lib/capybara/wsl.rb', line 14
def save_and_open_page(path = nil)
Capybara.current_session.save_page(path).tap do |s_path|
open_file(s_path)
end
end
|
.save_and_open_screenshot(path = nil, **options) ⇒ Object
20
21
22
23
24
|
# File 'lib/capybara/wsl.rb', line 20
def save_and_open_screenshot(path = nil, **options)
Capybara.current_session.save_screenshot(path, **options).tap do |s_path|
open_file(s_path)
end
end
|