How to release Keys.CONTROL, Keys.SHIFT, Keys.ARROW_LEFT

43 views
Skip to first unread message

Kumar

unread,
Aug 13, 2012, 11:25:59 AM8/13/12
to seleniu...@googlegroups.com
Hi

I used this code to select the text

 textblocktext.sendKeys(Keys.CONTROL, Keys.SHIFT, Keys.ARROW_LEFT);

The problem is that any new actions are performed with control still down.
For example, if I use click(), then it is opening a new window.

How do I release the CONTROL and other keys?

Thanks,
Kumar

Kumar

unread,
Aug 14, 2012, 3:26:42 AM8/14/12
to seleniu...@googlegroups.com
I could figure it out myself that we should use Keys.CLEAR command.

Thanks,
Kumar.

Peter Gale

unread,
Aug 14, 2012, 3:31:43 AM8/14/12
to Selenium Users
Kumar

This thread shows that you might want to spend a little more time researching solutions to your own problems BEFORE posting them on the forum.

If you use the forum as a FIRST point of call for every little issue you encounter and flood the forum with questions as you seem to be doing that you could quite easily answer for yourself with a little more time and effort, you will put people off and not get help you when you really do need it.

Peter


Date: Tue, 14 Aug 2012 00:26:42 -0700
From: your...@gmail.com
To: seleniu...@googlegroups.com
Subject: [selenium-users] Re: How to release Keys.CONTROL, Keys.SHIFT, Keys.ARROW_LEFT
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/DTMQZiYtKIkJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages