@@ -47,54 +47,56 @@ module WebDriver
47
47
end
48
48
end
49
49
50
- describe "cookie management" do
51
- it "should get all" do
52
- driver . navigate . to url_for ( "xhtmlTest.html" )
53
- driver . manage . add_cookie :name => "foo" , :value => "bar"
50
+ not_compliant_on :browser => :ie do
51
+ describe "cookie management" do
52
+ it "should get all" do
53
+ driver . navigate . to url_for ( "xhtmlTest.html" )
54
+ driver . manage . add_cookie :name => "foo" , :value => "bar"
54
55
55
- cookies = driver . manage . all_cookies
56
+ cookies = driver . manage . all_cookies
56
57
57
- expect ( cookies . size ) . to eq ( 1 )
58
- cookies . first [ :name ] . should == "foo"
59
- cookies . first [ :value ] . should == "bar"
60
- end
58
+ expect ( cookies . size ) . to eq ( 1 )
59
+ cookies . first [ :name ] . should == "foo"
60
+ cookies . first [ :value ] . should == "bar"
61
+ end
61
62
62
- not_compliant_on :browser => :edge do
63
- it "should delete one" do
64
- driver . navigate . to url_for ( "xhtmlTest.html" )
63
+ not_compliant_on :browser => :edge do
64
+ it "should delete one" do
65
+ driver . navigate . to url_for ( "xhtmlTest.html" )
65
66
66
- driver . manage . add_cookie :name => "foo" , :value => "bar"
67
- driver . manage . delete_cookie ( "foo" )
67
+ driver . manage . add_cookie :name => "foo" , :value => "bar"
68
+ driver . manage . delete_cookie ( "foo" )
69
+ end
68
70
end
69
- end
70
71
71
- # Edge does not yet support xpath
72
- not_compliant_on :browser => :edge do
73
- it "should delete all" do
74
- driver . navigate . to url_for ( "xhtmlTest.html" )
72
+ # Edge does not yet support xpath
73
+ not_compliant_on :browser => :edge do
74
+ it "should delete all" do
75
+ driver . navigate . to url_for ( "xhtmlTest.html" )
75
76
76
- driver . manage . add_cookie :name => "foo" , :value => "bar"
77
- driver . manage . delete_all_cookies
78
- driver . manage . all_cookies . should be_empty
77
+ driver . manage . add_cookie :name => "foo" , :value => "bar"
78
+ driver . manage . delete_all_cookies
79
+ driver . manage . all_cookies . should be_empty
80
+ end
79
81
end
80
- end
81
82
82
- not_compliant_on :browser => [ :ie , :android , :iphone , :safari ] do
83
- it "should use DateTime for expires" do
84
- driver . navigate . to url_for ( "xhtmlTest.html" )
83
+ not_compliant_on :browser => [ :ie , :android , :iphone , :safari ] do
84
+ it "should use DateTime for expires" do
85
+ driver . navigate . to url_for ( "xhtmlTest.html" )
85
86
86
- expected = DateTime . new ( 2039 )
87
- driver . manage . add_cookie :name => "foo" ,
88
- :value => "bar" ,
89
- :expires => expected
87
+ expected = DateTime . new ( 2039 )
88
+ driver . manage . add_cookie :name => "foo" ,
89
+ :value => "bar" ,
90
+ :expires => expected
90
91
91
- actual = driver . manage . cookie_named ( "foo" ) [ :expires ]
92
- actual . should be_kind_of ( DateTime )
93
- actual . should == expected
92
+ actual = driver . manage . cookie_named ( "foo" ) [ :expires ]
93
+ actual . should be_kind_of ( DateTime )
94
+ actual . should == expected
95
+ end
94
96
end
95
97
end
96
- end
97
98
99
+ end
98
100
end
99
101
end
100
102
end
0 commit comments