Skip to main content


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 15:16 Go to next message
Fafats  is currently offline Fafats Friend
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 17:12 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
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 07:20 Go to previous message
Fafats  is currently offline Fafats Friend
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 Apr 19 20:18:32 GMT 2024

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

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

Back to the top