|
26 | 26 | driver.find_element(:id, "imageButton").click
|
27 | 27 | end
|
28 | 28 |
|
29 |
| - # Edge does not yet support /session/:sessionId/element/:id/submit |
30 |
| - # http://dev.modern.ie/platform/status/webdriver/details/ |
31 |
| - not_compliant_on :browser => :edge do |
32 |
| - it "should submit" do |
33 |
| - driver.navigate.to url_for("formPage.html") |
34 |
| - driver.find_element(:id, "submitButton").submit |
35 |
| - end |
| 29 | + # TODO: File bug with Microsoft Edge documentation says this isn't supported, but it is |
| 30 | + # {POST} /session/{sessionId}/element/{id}/submit |
| 31 | + it "should submit" do |
| 32 | + driver.navigate.to url_for("formPage.html") |
| 33 | + driver.find_element(:id, "submitButton").submit |
36 | 34 | end
|
37 | 35 |
|
38 | 36 | it "should send string keys" do
|
|
73 | 71 | expect(driver.find_element(:id, "withText").attribute("rows")).to eq("5")
|
74 | 72 | end
|
75 | 73 |
|
76 |
| - not_compliant_on :browser => :edge do |
77 |
| - it "should return nil for non-existent attributes" do |
78 |
| - driver.navigate.to url_for("formPage.html") |
79 |
| - expect(driver.find_element(:id, "withText").attribute("nonexistent")).to be_nil |
80 |
| - end |
| 74 | + # TODO - File bug with Microsoft, this should return nil, but throws an error |
| 75 | + # Selenium::WebDriver::Error::UnknownError: unknown error |
| 76 | + it "should return nil for non-existent attributes" do |
| 77 | + driver.navigate.to url_for("formPage.html") |
| 78 | + expect(driver.find_element(:id, "withText").attribute("nonexistent")).to be_nil |
81 | 79 | end
|
82 | 80 |
|
83 | 81 | it "should clear" do
|
|
119 | 117 | expect(driver.find_element(:class, "header")).to be_displayed
|
120 | 118 | end
|
121 | 119 |
|
122 |
| - # Edge does not yet support /session/:sessionId/element/:id/location |
123 |
| - # http://dev.modern.ie/platform/status/webdriver/details/ |
124 |
| - not_compliant_on :browser => :edge do |
125 |
| - it "should get location" do |
126 |
| - driver.navigate.to url_for("xhtmlTest.html") |
127 |
| - loc = driver.find_element(:class, "header").location |
| 120 | + it "should get location" do |
| 121 | + driver.navigate.to url_for("xhtmlTest.html") |
| 122 | + loc = driver.find_element(:class, "header").location |
128 | 123 |
|
129 |
| - expect(loc.x).to be >= 1 |
130 |
| - expect(loc.y).to be >= 1 |
131 |
| - end |
| 124 | + expect(loc.x).to be >= 1 |
| 125 | + expect(loc.y).to be >= 1 |
132 | 126 | end
|
133 | 127 |
|
134 |
| - # Edge does not yet support /session/:sessionId/element/:id/location_in_view |
135 |
| - # http://dev.modern.ie/platform/status/webdriver/details/ |
136 |
| - not_compliant_on :browser => [:iphone, :edge] do |
| 128 | + not_compliant_on :browser => [:iphone] do |
137 | 129 | it "should get location once scrolled into view" do
|
138 | 130 | driver.navigate.to url_for("javascriptPage.html")
|
139 | 131 | loc = driver.find_element(:id, 'keyUp').location_once_scrolled_into_view
|
|
143 | 135 | end
|
144 | 136 | end
|
145 | 137 |
|
146 |
| - # Edge does not yet support /session/:sessionId/element/:id/size |
147 |
| - # http://dev.modern.ie/platform/status/webdriver/details/ |
| 138 | + # TODO - File bug with Microsoft, this command hangs |
| 139 | + # GET session/22A56752-2F60-45FB-B721-0CEB42CA77DF/element/4c3ee8d6-4ed4-492d-98c7-d8538366f7be/size |
148 | 140 | not_compliant_on :browser => :edge do
|
149 | 141 | it "should get size" do
|
150 | 142 | driver.navigate.to url_for("xhtmlTest.html")
|
|
183 | 175 | end
|
184 | 176 | end
|
185 | 177 |
|
186 |
| - # Edge does not yet support xpath |
187 |
| - not_compliant_on :browser => :edge do |
188 |
| - it "should know when two elements are equal" do |
189 |
| - driver.navigate.to url_for("simpleTest.html") |
| 178 | + it "should know when two elements are equal" do |
| 179 | + driver.navigate.to url_for("simpleTest.html") |
190 | 180 |
|
191 |
| - body = driver.find_element(:tag_name, 'body') |
192 |
| - xbody = driver.find_element(:xpath, "//body") |
| 181 | + body = driver.find_element(:tag_name, 'body') |
| 182 | + xbody = driver.find_element(:xpath, "//body") |
193 | 183 |
|
194 |
| - expect(body).to eq(xbody) |
195 |
| - expect(body).to eql(xbody) |
196 |
| - end |
| 184 | + expect(body).to eq(xbody) |
| 185 | + expect(body).to eql(xbody) |
197 | 186 | end
|
198 | 187 |
|
199 | 188 | not_compliant_on :browser => :phantomjs do
|
|
209 | 198 | end
|
210 | 199 | end
|
211 | 200 |
|
212 |
| - # Edge does not yet support xpath |
213 |
| - not_compliant_on :browser => :edge do |
214 |
| - it "should return the same #hash for equal elements when found by Driver#find_element" do |
215 |
| - driver.navigate.to url_for("simpleTest.html") |
| 201 | + it "should return the same #hash for equal elements when found by Driver#find_element" do |
| 202 | + driver.navigate.to url_for("simpleTest.html") |
216 | 203 |
|
217 |
| - body = driver.find_element(:tag_name, 'body') |
218 |
| - xbody = driver.find_element(:xpath, "//body") |
| 204 | + body = driver.find_element(:tag_name, 'body') |
| 205 | + xbody = driver.find_element(:xpath, "//body") |
219 | 206 |
|
220 |
| - expect(body.hash).to eq(xbody.hash) |
221 |
| - end |
| 207 | + expect(body.hash).to eq(xbody.hash) |
222 | 208 | end
|
223 | 209 |
|
224 |
| - # Edge does not yet support xpath |
| 210 | + # Edge does not yet support xpath location for {POST} /session/{sessionId}/elements |
225 | 211 | not_compliant_on :browser => :edge do
|
226 | 212 | it "should return the same #hash for equal elements when found by Driver#find_elements" do
|
227 | 213 | driver.navigate.to url_for("simpleTest.html")
|
|
0 commit comments