From 073591e9d1a13d119c67c8ad85165e2ba83c44a7 Mon Sep 17 00:00:00 2001 From: Mark Tityuk Date: Fri, 10 Jul 2020 19:42:44 +0600 Subject: [PATCH] Pass arguments from DSL-integrated methods --- lib/capybara/wsl/dsl.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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