diff --git a/lib/capybara/wsl/dsl.rb b/lib/capybara/wsl/dsl.rb index 2f2c4d2..443452a 100644 --- a/lib/capybara/wsl/dsl.rb +++ b/lib/capybara/wsl/dsl.rb @@ -3,12 +3,12 @@ module Capybara module WSL module DSL - def save_and_open_page_wsl - Capybara::WSL.save_and_open_page + def save_and_open_page_wsl(path = nil) + Capybara::WSL.save_and_open_page(path) end - def save_and_open_screenshot_wsl - Capybara::WSL.save_and_open_screenshot + def save_and_open_screenshot_wsl(path = nil, **options) + Capybara::WSL.save_and_open_screenshot(path, options) end end end