Skip to content

[rb] handled nil condition for Cookie Method in ruby #15099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3966bfe
handled nil condition for Cookie Method in ruby
pallavigitwork Jan 16, 2025
10cc4d3
modified error message for cookie
pallavigitwork Jan 16, 2025
ed47fde
[rb]modified delete cookie code for ruby
pallavigitwork Jan 20, 2025
d3ae86c
Merge branch 'trunk' into pallavi-getCookieRuby
harsha509 Jan 20, 2025
2d6f8b0
[rb]modified cookie method
pallavigitwork Jan 20, 2025
3b57ce1
Merge branch 'trunk' into pallavi-getCookieRuby
pallavigitwork Jan 20, 2025
4aa7080
[rb] modified code for delete cookie
pallavigitwork Jan 20, 2025
310a719
Merge branch 'pallavi-getCookieRuby' of https://github.com/pallavigit…
pallavigitwork Jan 20, 2025
150b92c
[rb] modified as per suggestion by Augustin
pallavigitwork Jan 20, 2025
c6d198b
Merge branch 'trunk' into pallavi-getCookieRuby
pallavigitwork Jan 21, 2025
008d4b8
Merge branch 'trunk' into pallavi-getCookieRuby
aguspe Feb 15, 2025
3d42267
Merge branch 'trunk' into pallavi-getCookieRuby
pallavigitwork Feb 17, 2025
b0482dc
Merge branch 'SeleniumHQ:trunk' into pallavi-getCookieRuby
pallavigitwork Mar 3, 2025
81e72f9
modified code files
pallavigitwork Mar 5, 2025
5ea276d
Merge branch 'pallavi-getCookieRuby' of https://github.com/pallavigit…
pallavigitwork Mar 5, 2025
fa7bf13
Merge branch 'trunk' into pallavi-getCookieRuby
pallavigitwork Mar 5, 2025
7299d44
modified extra line
pallavigitwork Mar 5, 2025
d8ec72b
Merge branch 'pallavi-getCookieRuby' of https://github.com/pallavigit…
pallavigitwork Mar 5, 2025
0f3f82b
Merge branch 'SeleniumHQ:trunk' into pallavi-getCookieRuby
pallavigitwork Mar 5, 2025
436a1a4
modified code
pallavigitwork Mar 5, 2025
9f568ce
Merge branch 'SeleniumHQ:trunk' into pallavi-getCookieRuby
pallavigitwork Mar 5, 2025
336a0bf
Merge branch 'trunk' into pallavi-getCookieRuby
pallavigitwork Mar 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rb/lib/selenium/webdriver/remote/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,16 @@ def add_cookie(cookie)
end

def delete_cookie(name)
if ( name.nil? || name.empty?) then
raise Error::ArgumentError, 'Cookie name cannot be null or empty'
end
execute :delete_cookie, name: name
end

def cookie(name)
if ( name.nil? || name.empty?) then
raise Error::ArgumentError, 'Cookie name cannot be null or empty'
end
execute :get_cookie, name: name
end

Expand Down
Loading