Skip to content

Commit

Permalink
Pass arguments from DSL-integrated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dersnek committed Jul 10, 2020
1 parent bf15cae commit 073591e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/capybara/wsl/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 073591e

Please sign in to comment.