Olivier Grégoire
Olivier Grégoire

Reputation: 35427

Simulate key presses with Robot Framework

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?

Upvotes: 3

Views: 15759

Answers (3)

Gremi64
Gremi64

Reputation: 1677

Here in the documentation you have examples of multiple keys pressed :

Press Keys  locator CTRL+S

Upvotes: 0

cris
cris

Reputation: 203

I found a solution with the ImageHorizonLibrary:

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

Press Combination    Key.CTRL    Key.S 

Upvotes: 1

Vinaykumar Patel
Vinaykumar Patel

Reputation: 884

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.

Upvotes: 3

Related Questions