File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
rb/spec/integration/selenium/webdriver Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -108,21 +108,23 @@ module WebDriver
108
108
end
109
109
end
110
110
111
- it 'can release pressed keys via release action' do
112
- driver . navigate . to url_for ( 'javascriptPage.html' )
111
+ compliant_on driver : :ff_nightly do
112
+ it 'can release pressed keys via release action' do
113
+ driver . navigate . to url_for ( 'javascriptPage.html' )
113
114
114
- event_input = driver . find_element ( id : 'theworks' )
115
- keylogger = driver . find_element ( id : 'result' )
115
+ event_input = driver . find_element ( id : 'theworks' )
116
+ keylogger = driver . find_element ( id : 'result' )
116
117
117
- event_input . click
118
+ event_input . click
118
119
119
- driver . action . key_down ( :shift ) . perform
120
- wait . until { keylogger . text . include? 'down' }
121
- expect ( keylogger . text ) . to match ( /keydown *$/ )
120
+ driver . action . key_down ( :shift ) . perform
121
+ wait . until { keylogger . text . include? 'down' }
122
+ expect ( keylogger . text ) . to match ( /keydown *$/ )
122
123
123
- driver . action . release_actions
124
- wait . until { keylogger . text . include? 'up' }
125
- expect ( keylogger . text ) . to match ( /keyup *$/ )
124
+ driver . action . release_actions
125
+ wait . until { keylogger . text . include? 'up' }
126
+ expect ( keylogger . text ) . to match ( /keyup *$/ )
127
+ end
126
128
end
127
129
end # Key actions
128
130
You can’t perform that action at this time.
0 commit comments