Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Click on editor with swtbot
Click on editor with swtbot [message #698973] Wed, 20 July 2011 11:16 Go to next message
Fafats  is currently offline Fafats
Messages: 3
Registered: July 2011
Junior Member
Hello,

I work with SWTBot for testing UI of a RCP application.
And I want to click on a toolbarRadioButton and drop it in a editor,ie I click on a button and after I click on editor .So I don't know How we click on an editor. Could you help me please.

Re: Click on editor with swtbot [message #702696 is a reply to message #698973] Tue, 26 July 2011 13:12 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
On 7/20/11 8:16 AM, Fafats wrote:
> Hello,
>
> I work with SWTBot for testing UI of a RCP application.
> And I want to click on a toolbarRadioButton and drop it in a editor,ie I
> click on a button and after I click on editor .So I don't know How we
> click on an editor. Could you help me please.
>
>

I'm guessing you want to click on the editor to set focus on it. Try
editor.setFocus() instead.

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot | @ketanpkr
Re: Click on editor with swtbot [message #703107 is a reply to message #702696] Wed, 27 July 2011 03:20 Go to previous message
Fafats  is currently offline Fafats
Messages: 3
Registered: July 2011
Junior Member
I had already set focus my editor.But I want to click on the editor. Because I want do drag and drop.I click on a radio buttton and after I click on editor in order to drop it.



bot.toolbarRadioButtonWithTooltip("Create Node of Type \"End\"").click();
bot.editorByTitle("fileEssai.s").setFocus();


After setting focus my editor I want to click on !! To do you have any ideas please?
Previous Topic:Right clic on editor
Next Topic:clearing the workspace in @AfterClass
Goto Forum:
  


Current Time: Fri Aug 01 12:17:15 EDT 2014

Powered by FUDForum. Page generated in 0.01720 seconds