@@ -28,12 +28,14 @@ module WebDriver
2828 end
2929
3030 compliant_on browser : [ :chrome , :ff_legacy ] do
31- it 'should raise if different element receives click' do
32- driver . navigate . to url_for ( 'click_tests/overlapping_elements.html' )
33- element_error = 'Other element would receive the click: <div id="over"><\/div>'
34- error = /is not clickable at point \( \d +, \d +\) \. #{ element_error } /
35- expect { driver . find_element ( id : 'contents' ) . click }
36- . to raise_error ( Selenium ::WebDriver ::Error ::UnknownError , error )
31+ not_compliant_on driver : :remote , platform : :macosx do
32+ it 'should raise if different element receives click' do
33+ driver . navigate . to url_for ( 'click_tests/overlapping_elements.html' )
34+ element_error = 'Other element would receive the click: <div id="over"><\/div>'
35+ error = /is not clickable at point \( \d +, \d +\) \. #{ element_error } /
36+ expect { driver . find_element ( id : 'contents' ) . click }
37+ . to raise_error ( Selenium ::WebDriver ::Error ::UnknownError , error )
38+ end
3739 end
3840 end
3941
@@ -140,32 +142,29 @@ module WebDriver
140142 end
141143 end
142144
143- # Remote w3c bug: https://github.com/SeleniumHQ/selenium/issues/2857
144- not_compliant_on driver : :remote , browser : :firefox do
145- context 'size and location' do
146- it 'should get current location' do
147- driver . navigate . to url_for ( 'xhtmlTest.html' )
148- loc = driver . find_element ( class : 'header' ) . location
145+ context 'size and location' do
146+ it 'should get current location' do
147+ driver . navigate . to url_for ( 'xhtmlTest.html' )
148+ loc = driver . find_element ( class : 'header' ) . location
149149
150- expect ( loc . x ) . to be >= 1
151- expect ( loc . y ) . to be >= 1
152- end
150+ expect ( loc . x ) . to be >= 1
151+ expect ( loc . y ) . to be >= 1
152+ end
153153
154- it 'should get location once scrolled into view' do
155- driver . navigate . to url_for ( 'javascriptPage.html' )
156- loc = driver . find_element ( id : 'keyUp' ) . location_once_scrolled_into_view
154+ it 'should get location once scrolled into view' do
155+ driver . navigate . to url_for ( 'javascriptPage.html' )
156+ loc = driver . find_element ( id : 'keyUp' ) . location_once_scrolled_into_view
157157
158- expect ( loc . x ) . to be >= 1
159- expect ( loc . y ) . to be >= 0 # can be 0 if scrolled to the top
160- end
158+ expect ( loc . x ) . to be >= 1
159+ expect ( loc . y ) . to be >= 0 # can be 0 if scrolled to the top
160+ end
161161
162- it 'should get size' do
163- driver . navigate . to url_for ( 'xhtmlTest.html' )
164- 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
165165
166- expect ( size . width ) . to be > 0
167- expect ( size . height ) . to be > 0
168- end
166+ expect ( size . width ) . to be > 0
167+ expect ( size . height ) . to be > 0
169168 end
170169 end
171170
0 commit comments