How do I automate keyboard shortcut

View: New views
3 Messages — Rating Filter:   Alert me  

How do I automate keyboard shortcut

by shanski21 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I a complete novice when it come using selenium IDE therefore was wondering if someone could possibly help me.

Basically I am trying to automate keyboard shortcut for web application which turn the map background 'ON' and 'OFF'. For example if I want to turn off the map background, I would hold down the control button followed by pressing the letter 'B' on the keyboard. The same is true for turning the  boundarues 'ON' again.

I know I have to use the ControlKeyDown, ControlKeyUp and KeyPress functions but I am struggling with the actual syntax.

I would very grateful if some can please post a HTML code that I can try to resolve this problem.

Cheers

PS: I am using FF3.5

Re: How do I automate keyboard shortcut

by tommy234 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

Use the following link to get an idea to solve your problem:

http://seleniumforum.forumotion.net/selenium-ide-discussion-f3/how-to-automate-keyboard-shortcut-t80.htm#148

bye

shanski21 wrote:
Hi,

I a complete novice when it come using selenium IDE therefore was wondering if someone could possibly help me.

Basically I am trying to automate keyboard shortcut for web application which turn the map background 'ON' and 'OFF'. For example if I want to turn off the map background, I would hold down the control button followed by pressing the letter 'B' on the keyboard. The same is true for turning the  boundarues 'ON' again.

I know I have to use the ControlKeyDown, ControlKeyUp and KeyPress functions but I am struggling with the actual syntax.

I would very grateful if some can please post a HTML code that I can try to resolve this problem.

Cheers

PS: I am using FF3.5

Re: How do I automate keyboard shortcut

by kjaladi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You may want to check "typeKeys" command in Selenium IDE.
 
thanks.