Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Problem with SWTBotEclipseEdittor
Problem with SWTBotEclipseEdittor [message #33070] Wed, 22 April 2009 09:57 Go to next message
Eclipse UserFriend
Hi ,

After changing the perspective to that of my plug-in, I am creating a
project and then i am trying to write some code in the file.
For this i am using the following code

SWTBotEclipseEditor fileEditor=bot.editor("Filename");
fileEditor.setText("This is test Text");

but the test is failing at the line bot.editor("Filename"); throwing
exception

" org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundExcep tion : Could
not find any control inside view Filename."

I tried this with the java project. In that case it is working fine.But in
the case of my plug-in it is throwing this exception.

I didn't understand what could be the reason for this.
Any pointers for this will be higly helpful to me.

thanks in advance.
Santhosh
Re: Problem with SWTBotEclipseEdittor [message #33247 is a reply to message #33070] Thu, 23 April 2009 02:43 Go to previous messageGo to next message
Eclipse UserFriend
You need to provide the filename as 'filename.extension'. In case of
errors, you'll also find some screenshots in the screenshots folder
useful for diagnosing.

-- Ketan

santhosh ram wrote:
> Hi ,
>
> After changing the perspective to that of my plug-in, I am creating
> a project and then i am trying to write some code in the file.
> For this i am using the following code
>
> SWTBotEclipseEditor fileEditor=bot.editor("Filename");
> fileEditor.setText("This is test Text");
>
> but the test is failing at the line bot.editor("Filename"); throwing
> exception
>
> " org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundExcep tion :
> Could not find any control inside view Filename."
>
> I tried this with the java project. In that case it is working fine.But
> in the case of my plug-in it is throwing this exception.
>
> I didn't understand what could be the reason for this. Any pointers for
> this will be higly helpful to me.
>
> thanks in advance.
> Santhosh
>
>
>
Re: Problem with SWTBotEclipseEdittor [message #33422 is a reply to message #33247] Fri, 24 April 2009 01:18 Go to previous messageGo to next message
Eclipse UserFriend
Ketan Padegaonkar wrote:

> You need to provide the filename as 'filename.extension'. In case of
> errors, you'll also find some screenshots in the screenshots folder
> useful for diagnosing.

> -- Ketan

> santhosh ram wrote:
>> Hi ,
>>
>> After changing the perspective to that of my plug-in, I am creating
>> a project and then i am trying to write some code in the file.
>> For this i am using the following code
>>
>> SWTBotEclipseEditor fileEditor=bot.editor("Filename");
>> fileEditor.setText("This is test Text");
>>
>> but the test is failing at the line bot.editor("Filename"); throwing
>> exception
>>
>> " org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundExcep tion :
>> Could not find any control inside view Filename."
>>
>> I tried this with the java project. In that case it is working fine.But
>> in the case of my plug-in it is throwing this exception.
>>
>> I didn't understand what could be the reason for this. Any pointers for
>> this will be higly helpful to me.
>>
>> thanks in advance.
>> Santhosh
>>
>>
>>
hi ketan,

Thanks for the reply. I am providing the filename as
"FileName.extension" only. Even then the exception is thrown.

Is there any issues with the SWTBotEclipseEditor that it can
identify only the editors which are implemented by extending a particular
class or such? As it is not able to identify my editor.

I didn't find the screenshots folder in my current directory. Where
can i find that. For that i need to do any additional configuration?

Please throw some light on these aspects.

Regards,
Santhosh
Re: Problem with SWTBotEclipseEdittor [message #34139 is a reply to message #33070] Thu, 30 April 2009 08:57 Go to previous message
Eclipse UserFriend
Hi,

I had the same problem and it appeared that the editor I am trying to
write in is some kind of graphical editor. That was the reason why no
controls were found.
Previous Topic:Can't test RCP application
Next Topic:Off action for a while...
Goto Forum:
  


Current Time: Wed Jun 18 08:37:21 EDT 2025

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

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

Back to the top