Skip to content

Commit 10cc4d3

Browse files
modified error message for cookie
1 parent 3966bfe commit 10cc4d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rb/lib/selenium/webdriver/remote/bridge.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,14 @@ def add_cookie(cookie)
386386

387387
def delete_cookie(name)
388388
if ( name.nil? || name.empty?) then
389-
raise Error::ArgumentError, 'Cookie name cannot be null'
389+
raise Error::ArgumentError, 'Cookie name cannot be null or empty'
390390
end
391391
execute :delete_cookie, name: name
392392
end
393393

394394
def cookie(name)
395395
if ( name.nil? || name.empty?) then
396-
raise Error::ArgumentError, 'Cookie name cannot be null'
396+
raise Error::ArgumentError, 'Cookie name cannot be null or empty'
397397
end
398398
execute :get_cookie, name: name
399399
end

0 commit comments

Comments
 (0)