Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to using Enter key on a text box
How to using Enter key on a text box [message #1006109] Tue, 29 January 2013 18:20 Go to previous message
manali pattem is currently offline manali pattem
Messages: 2
Registered: January 2013
Junior Member
I have been trying to use the enter key on a text box but somehow i can never get it working.I dont have any errors but it does not click enter.

Situation is I have a text box and i need to fill in a text and click enter and only then i have items that load . I have been trying this code

setText(labelname, text, dialogtitle);
key.pressShortcut(SWT.CR,SWT.LF);

Could anyone help me out on how to get this working??

Here is the screenshot
Capture.jpg index.php/fa/13150/0/ shows before clicking enter
Capture2.jpg index.php/fa/13151/0/ shows after clicking enter
  • Attachment: Capture.JPG
    (Size: 23.77KB, Downloaded 144 times)
  • Attachment: Capture2.JPG
    (Size: 21.75KB, Downloaded 143 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:SWTBot for custom SWT control
Next Topic:View Toolbar button issue while SWTBot and Eclipse Juno
Goto Forum:
  


Current Time: Sun May 19 06:53:28 EDT 2013

Powered by FUDForum. Page generated in 0.01560 seconds