Skip to content

Commit ea9bc69

Browse files
rgisigerrgisiger
authored andcommitted
Add error handling for missing server_url in new_http_client
1 parent 89cce34 commit ea9bc69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rb/lib/selenium/webdriver/remote/http/default.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def response_for(request)
119119
end
120120

121121
def new_http_client
122+
raise Error::WebDriverError, 'server_url not set' unless server_url
123+
122124
if proxy
123125
url = proxy.http
124126
unless proxy.respond_to?(:http) && url

0 commit comments

Comments
 (0)