twalpole / apparition

Capybara driver for Chrome using CDP
MIT License
363 stars 46 forks source link

Bad URI Exception for WebSocket while running tests #88

Open darshanshah1996 opened 2 years ago

darshanshah1996 commented 2 years ago

Hello there ! While trying to run test I am getting following error

bad URI(is not URI?): nil (URI::InvalidURIError)

It seems the issue is present while instantiating new TCP Socket done by the Socket Class defined in Apparition/driver/web_socket_client

The URL passed in the initialize of Socket Class seems to have trailing white space.

image

On stripping the spaces from the URI the test seems to run correctly

image

Details:- OS:-Windows 11 build 22000.469 Apparition version:- 0.6.0