SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

Press Keys causes two key ups for selenium special keys

Open MrBIN89 opened this issue 4 years ago • 1 comments

Steps to reproduce the issue

Press Keys keyword execution with special selenium keys, for example Press Keys css:locator BACKSPACE, brings two key_up events unexpectedly. That causes two letters removal instead of one in my case. изображение

Though in case the selenium key code is used there is no event duplicates, works like a charm изображение

Expected behavior and actual behavior

I was expecting that the Press Keys should work consistently for both scenarios, send key_down and key_up for once only:

  1. Press Keys css:locator BACKSPACE
  2. Press Keys css:locator \ue003

Environment

Browser: Chrome 90.0.4430.72 Browser driver: ChromeDriver 90.0.4430.24 Operating System: Windows 10 Libraries

  • Robot Framework: 4.0.3
  • Selenium: 3.141.0
  • SeleniumLibrary: 5.1.3
  • Interpreter: Python 3.6

MrBIN89 avatar Oct 05 '21 12:10 MrBIN89

PS: W3C chromedriver mode is set to False in the example above.

MrBIN89 avatar Nov 03 '21 08:11 MrBIN89