Simulate key presses with Robot Framework

11,644

Solution 1

I was looking for the same and came across this. It says it is under implementation. Follow this for more update.

https://github.com/robotframework/Selenium2Library/issues/498

Lets hope it will be available to use by Oct-2015.

Solution 2

I found a solution with the ImageHorizonLibrary:

http://eficode.github.io/robotframework-imagehorizonlibrary/doc/ImageHorizonLibrary.html#Press%20Combination

Press Combination    Key.CTRL    Key.S 
Share:
11,644
Olivier Grégoire
Author by

Olivier Grégoire

Updated on June 27, 2022

Comments

  • Olivier Grégoire
    Olivier Grégoire almost 2 years

    We've defined the key-press sequence Ctrl + S in our web application to a specific action (save the current form).

    Now we want to test that behavior with Robot Framework. How can we describe that accurately to do that?

    The documentation describes how to use Enter or any single key press, but nothing is said about combinations. So how to trigger a Ctrl + S, for instance?

  • Pavol Travnik
    Pavol Travnik about 6 years
    Unfortunately, issue is still opened - Press Keys in Robot framework