We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310a719 commit 150b92cCopy full SHA for 150b92c
rb/lib/selenium/webdriver/remote/bridge.rb
@@ -385,7 +385,7 @@ def add_cookie(cookie)
385
end
386
387
def delete_cookie(name)
388
- raise ArgumentError, 'Cookie name cannot be null or empty' if name.nil? || name.empty?
+ raise ArgumentError, 'Cookie name cannot be null or empty' unless name || !name.empty?
389
execute :delete_cookie, name: name
390
391
0 commit comments