|
141 | 141 | expect(driver.find_element(:class, "header")).to be_displayed
|
142 | 142 | end
|
143 | 143 |
|
144 |
| - # Location not currently supported in Spec, but should be? |
145 |
| - not_compliant_on :browser => :marionette do |
146 |
| - it "should get location" do |
147 |
| - driver.navigate.to url_for("xhtmlTest.html") |
148 |
| - loc = driver.find_element(:class, "header").location |
| 144 | + it "should get location" do |
| 145 | + driver.navigate.to url_for("xhtmlTest.html") |
| 146 | + loc = driver.find_element(:class, "header").location |
149 | 147 |
|
150 |
| - expect(loc.x).to be >= 1 |
151 |
| - expect(loc.y).to be >= 1 |
152 |
| - end |
| 148 | + expect(loc.x).to be >= 1 |
| 149 | + expect(loc.y).to be >= 1 |
| 150 | + end |
153 | 151 |
|
154 |
| - not_compliant_on :browser => [:iphone] do |
155 |
| - it "should get location once scrolled into view" do |
156 |
| - driver.navigate.to url_for("javascriptPage.html") |
157 |
| - loc = driver.find_element(:id, 'keyUp').location_once_scrolled_into_view |
| 152 | + not_compliant_on :browser => :iphone do |
| 153 | + it "should get location once scrolled into view" do |
| 154 | + driver.navigate.to url_for("javascriptPage.html") |
| 155 | + loc = driver.find_element(:id, 'keyUp').location_once_scrolled_into_view |
158 | 156 |
|
159 |
| - expect(loc.x).to be >= 1 |
160 |
| - expect(loc.y).to be >= 0 # can be 0 if scrolled to the top |
161 |
| - end |
| 157 | + expect(loc.x).to be >= 1 |
| 158 | + expect(loc.y).to be >= 0 # can be 0 if scrolled to the top |
162 | 159 | end
|
163 | 160 | end
|
164 | 161 |
|
165 |
| - # Marionette BUG: |
166 |
| - # GET /session/f7082a32-e685-2843-ad2c-5bb6f376dac5/element/b6ff4468-ed6f-7c44-be4b-ca5a3ea8bf26/size |
167 |
| - # did not match a known command" |
168 |
| - not_compliant_on :browser => :marionette do |
169 |
| - it "should get size" do |
170 |
| - driver.navigate.to url_for("xhtmlTest.html") |
171 |
| - size = driver.find_element(:class, "header").size |
| 162 | + it "should get size" do |
| 163 | + driver.navigate.to url_for("xhtmlTest.html") |
| 164 | + size = driver.find_element(:class, "header").size |
172 | 165 |
|
173 |
| - expect(size.width).to be > 0 |
174 |
| - expect(size.height).to be > 0 |
175 |
| - end |
| 166 | + expect(size.width).to be > 0 |
| 167 | + expect(size.height).to be > 0 |
176 | 168 | end
|
177 | 169 |
|
178 | 170 | compliant_on :driver => [:ie, :chrome, :edge] do # Firefox w/native events: issue 1771
|
|
243 | 235 |
|
244 | 236 | expect(body.hash).to eq(xbody.hash)
|
245 | 237 | end
|
246 |
| - |
247 | 238 | end
|
0 commit comments