-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Not sure if this is an issue with this gem or the capybara driver, but...
I had to monkeypatch lib/playwright/connection.rb:
def send_message_to_server(guid, method, params, metadata: nil)
params[:url] = params[:url].to_s # added this line
async_send_message_to_server(guid, method, params, metadata: metadata).value!
endOtherwise I get an error about string being expected instead of an object.
Playwright::Error:
url: expected string, got object
# /usr/local/bundle/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/promises.rb:1268:in `raise'
# /usr/local/bundle/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/promises.rb:1268:in `wait_until_resolved!'
# /usr/local/bundle/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/promises.rb:1482:in `value!'
# /usr/local/bundle/gems/playwright-ruby-client-1.55.0/lib/playwright/connection.rb:125:in `send_message_to_server'
# /usr/local/bundle/gems/playwright-ruby-client-1.55.0/lib/playwright/channel.rb:35:in `block in send_message_to_server_result'
...
Versions are...
playwright-ruby-client-1.55.0
capybara-playwright-driver-0.5.7
Metadata
Metadata
Assignees
Labels
No labels