mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix a Ruby 2.7 deprecation warning.
The selenium execute_cdp method takes keyword arguments, so params should be passed with a doublesplat.
This commit is contained in:
parent
a392f8950e
commit
118b3e4414
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ private
|
|||
|
||||
def execute_cdp(cmd, params = {})
|
||||
if browser.respond_to? :execute_cdp
|
||||
browser.execute_cdp(cmd, params)
|
||||
browser.execute_cdp(cmd, **params)
|
||||
else
|
||||
args = { cmd: cmd, params: params }
|
||||
result = bridge.http.call(:post, "session/#{bridge.session_id}/goog/cdp/execute", args)
|
||||
|
|
Loading…
Reference in a new issue