Skip to content

Commit bb73a56

Browse files
committed
Add test for releasing keys when driver receive NULL key
1 parent cab6655 commit bb73a56

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rb/spec/integration/selenium/webdriver/element_spec.rb

+11
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ module WebDriver
6868
end
6969
end
7070

71+
# https://github.com/mozilla/geckodriver/issues/245
72+
compliant_on browser: %i[ff_esr chrome] do
73+
it 'should send key presses chords' do
74+
driver.navigate.to url_for('javascriptPage.html')
75+
key_reporter = driver.find_element(id: 'keyReporter')
76+
77+
key_reporter.send_keys([:shift, 'h'], 'ello')
78+
expect(key_reporter.attribute('value')).to eq('Hello')
79+
end
80+
end
81+
7182
# PhantomJS on windows issue: https://github.com/ariya/phantomjs/issues/10993
7283
# https://github.com/mozilla/geckodriver/issues/644
7384
# https://github.com/mozilla/geckodriver/issues/858

0 commit comments

Comments
 (0)