You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try the example code from Basic Usage I get an error:
# web_driver_test.rbrequire'async/webdriver'Asyncdobridge=Async::WebDriver::Bridge::Safari.startclient=Async::WebDriver::Client.open(bridge.endpoint)session=client.session(bridge.default_capabilities)# Set the implicit wait timeout to 10 seconds since we are dealing with the real internet (which can be slow):session.implicit_wait_timeout=10_000session.visit('https://google.com')session.fill_in('q','async-webdriver')session.click_button("I'm Feeling Lucky")putssession.document_titleensuresession&.closeclient&.closebridge&.closeend
Console output:
❯ ruby web_driver_test.rb
0.02s warn: Async::Task [oid=0x244] [ec=0x258] [pid=83585] [2024-06-05 13:09:08 -0600]
| Task may have ended with unhandled exception.
| NoMethodError: undefined method `default_capabilities' for an instance of Async::WebDriver::Bridge::Chrome::Driver (NoMethodError) | | session = client.session(bridge.default_capabilities) | ^^^^^^^^^^^^^^^^^^^^^ | → web_driver_test.rb:7 in `block in <main>'| /Users/some_user/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/async-2.12.0/lib/async/task.rb:164 in`block in run' | /Users/some_user/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/async-2.12.0/lib/async/task.rb:377 in `block in schedule'
The text was updated successfully, but these errors were encountered:
When I try the example code from Basic Usage I get an error:
Console output:
The text was updated successfully, but these errors were encountered: