(WebAutomation) How can we use hotkeys in Web Automation?

Like Enter, Tab, Home, End, Down, up etc.
Please suggest!!

Thank You

Hello @harikrushna.bhosale and welcome to our community! :slight_smile:
Well it depends…
If you explicitly want to use keystrokes inside a webpage the best approach would be to utilize the WebAutomation module to go to the requisite page and then utilize ``
MouseAndKeyboard.SendKeys action to press the keys you want.
Regarding “Enter”… Again it depends on the situation.
For example if you want to just confirm a web dialog you could utilize the WebAutomation module again.

Please take a look here and here.

Best regards,
J.


James Papadimitriou
Technical Evangelist

Thank You @jpap.

Got the solution!!

eg. MouseAndKeyboard.SendKeys TextToSend: ‘{Tab}’
DelayBetweenKeystrokes:5
MouseAndKeyboard.SendKeys TextToSend: ‘{Tab}’
DelayBetweenKeystrokes:1
MouseAndKeyboard.SendKeys TextToSend: ‘{Tab}’
DelayBetweenKeystrokes:1
MouseAndKeyboard.SendKeys TextToSend: ‘{Tab}’
DelayBetweenKeystrokes:1

MouseAndKeyboard.SendKeys TextToSend: ‘{Enter}’
DelayBetweenKeystrokes:1

3 Likes

Thank u sir …:star_struck:
its working well…

2 Likes

Hello @rushi.dalvi and welcome to our community!
Feel free to start a new topic with questions/suggestions!

Best regards,
J.


James Papadimitriou
Technical Evangelist

1 Like