21
21
22
22
module Selenium
23
23
module WebDriver
24
- describe ActionBuilder , except : [ { browser : :safari } , { browser : %i[ firefox ff_nightly ] , driver : :remote } ] do
25
- after { driver . action . instance_variable_set ( :@actions , [ ] ) }
24
+ describe ActionBuilder , except : { browser : :safari } do
25
+ after { reset_driver! }
26
26
27
27
describe 'Key actions' do
28
28
it 'sends keys to the active element' do
@@ -103,7 +103,7 @@ module WebDriver
103
103
expect ( input . attribute ( :value ) ) . to eq ( 'abcd' )
104
104
end
105
105
106
- it 'can release pressed keys via release action' , only : { driver : %i[ firefox ff_nightly ] } do
106
+ it 'can release pressed keys via release action' , only : { browser : %i[ firefox ff_nightly ] } do
107
107
driver . navigate . to url_for ( 'javascriptPage.html' )
108
108
109
109
event_input = driver . find_element ( id : 'theworks' )
@@ -146,7 +146,7 @@ module WebDriver
146
146
end
147
147
148
148
# Pending bug with Firefox
149
- it 'double clicks an element' , except : { driver : %i[ firefox ff_nightly ] } do
149
+ it 'double clicks an element' , except : { browser : %i[ firefox ff_nightly ] } do
150
150
driver . navigate . to url_for ( 'javascriptPage.html' )
151
151
element = driver . find_element ( id : 'doubleClickField' )
152
152
@@ -162,7 +162,7 @@ module WebDriver
162
162
expect ( element . attribute ( :value ) ) . to eq ( 'ContextClicked' )
163
163
end
164
164
165
- it 'can release pressed buttons via release action' , only : { driver : %i[ firefox ff_nightly ] } do
165
+ it 'can release pressed buttons via release action' , only : { browser : %i[ firefox ff_nightly ] } do
166
166
driver . navigate . to url_for ( 'javascriptPage.html' )
167
167
168
168
event_input = driver . find_element ( id : 'clickField' )
0 commit comments