on 03-12-2021 10:16 AM
I am trying to simulate enter keystroke on an sapgui screen.it was easy with desktop studio like e.sapscripting.key._Enter_, but doesn't work with cloud studio
Hey Ashwin,
In order to add a keystroke using the cloud studio, you have 2 options. Using the activity , or doing the keystrokes in a custom script.
Using the activity:
The keys that can be executed are those that you can find in the irpa_core.enums.key. and then using the auto completion function for it. This kind of value will then be added in the "Expression" of the keystroke. Below you can find my own keystroke to execute a Ctrl keystroke.
Using the custom script:
Executing a keystroke is also possible using a custom script.
For this, you first have to add the "Custom script" control into your workflow.
In order to add a keystroke using a custom script, you have to use the irpa_core library function irpa_core.core.keyStroke().
In the brackets of that function, you specify which keys you want to do. These are the same options as for the activity option (Found in irpa_core.enums.key)
Hope this helps!
Kind regards,
Jonis de Klerk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.