-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[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
Changes from 8 commits
3966bfe
10cc4d3
ed47fde
d3ae86c
2d6f8b0
3b57ce1
4aa7080
310a719
150b92c
c6d198b
008d4b8
3d42267
b0482dc
81e72f9
5ea276d
fa7bf13
7299d44
d8ec72b
0f3f82b
436a1a4
9f568ce
336a0bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -242,6 +242,11 @@ module WebDriver | |
| expect(driver.manage.all_cookies.find { |c| c[:name] == 'foo' }).to be_nil | ||
| end | ||
|
|
||
| it 'throws error when cookie name is empty string' do | ||
| expect { driver.manage.delete_cookie('') } | ||
| .to raise_exception(ArgumentError) | ||
|
||
| end | ||
|
|
||
| it 'deletes all' do | ||
| driver.manage.add_cookie name: 'foo', value: 'bar' | ||
| driver.manage.add_cookie name: 'bar', value: 'foo' | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.