Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBOT - Insert Key(How to simulate Insert Key button press using SWTBOT)
SWTBOT - Insert Key [message #1171767] Tue, 05 November 2013 13:18 Go to next message
Muninder Kumar is currently offline Muninder Kumar
Messages: 1
Registered: November 2013
Junior Member
Hi,

Is there any way to simulate Insert Key button press in SWTBOT.
Keystrokes.java doesn't have the INSERT Key Handling..
tried overriding it as well didn't help..

Any help is appreciated...

Regards
Re: SWTBOT - Insert Key [message #1173040 is a reply to message #1171767] Wed, 06 November 2013 08:43 Go to previous message
Martin Schemel is currently offline Martin Schemel
Messages: 4
Registered: November 2013
Location: Berlin
Junior Member
I guess what you're looking for is

KeyStroke insertKey = KeyStroke.getInstance(SWT.INSERT);


for example

new SWTWorkbenchBot().text().pressShortcut(KeyStroke.getInstance(SWT.INSERT));
Previous Topic:Apllication Not responding
Next Topic:Run test from jenkins
Goto Forum:
  


Current Time: Sat Oct 25 01:46:29 GMT 2014

Powered by FUDForum. Page generated in 0.01571 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software