Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Scroll an eclipse view using SWT BOT(Scroll an eclipse view using SWT BOT)
Scroll an eclipse view using SWT BOT [message #1016522] Wed, 06 March 2013 18:41 Go to next message
Anthony Ghonsalves is currently offline Anthony Ghonsalves
Messages: 7
Registered: October 2010
Junior Member

My Perspective has multiple views.
1st View - Criteria form at the top
2nd View - Results form in the bottom.

The first view which is a criteria form needs to be scrolled so that i can set values to the controls displayed on that form.

Is there a way to accomplish this using SWT-BoT.
Re: Scroll an eclipse view using SWT BOT [message #1016649 is a reply to message #1016522] Thu, 07 March 2013 09:14 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 563
Registered: July 2009
Senior Member
Anthony,

do you use a ScrolledComposite in your 'criteria form'? If so, there is
currently no bot for ScrolledComposite (i.e. SWTBotScrolledComposite).
You can either write a custom bot or just try without. Did you actually
try to let SWTBot set values without scrolling the widgets into view?

HTH
Rüdiger

On 06.03.2013 19:41, Anthony Ghonsalves wrote:
>
> My Perspective has multiple views. 1st View - Criteria form at the top
> 2nd View - Results form in the bottom.
>
> The first view which is a criteria form needs to be scrolled so that i
> can set values to the controls displayed on that form.
>
> Is there a way to accomplish this using SWT-BoT.--
Rüdiger Herrmann
http://codeaffine.com
Re: Scroll an eclipse view using SWT BOT [message #1016672 is a reply to message #1016649] Thu, 07 March 2013 10:18 Go to previous message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1349
Registered: July 2009
Senior Member
I have some swtbot tests acting on a form inside a ScrolledComposite,
and, as far as I remember, I can access widgets in the form with swtbot
even if they are not visible in the running eclipse instance...

cheers
Lorenzo

On 03/07/2013 10:14 AM, Rüdiger Herrmann wrote:
> Anthony,
>
> do you use a ScrolledComposite in your 'criteria form'? If so, there is
> currently no bot for ScrolledComposite (i.e. SWTBotScrolledComposite).
> You can either write a custom bot or just try without. Did you actually
> try to let SWTBot set values without scrolling the widgets into view?
>
> HTH
> Rüdiger
>
> On 06.03.2013 19:41, Anthony Ghonsalves wrote:
>>
>> My Perspective has multiple views. 1st View - Criteria form at the top
>> 2nd View - Results form in the bottom.
>>
>> The first view which is a criteria form needs to be scrolled so that i
>> can set values to the controls displayed on that form.


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Previous Topic:More on EclipseSpy
Next Topic:Unable to Enter Text in a Tree Cell
Goto Forum:
  


Current Time: Mon Sep 15 09:33:43 GMT 2014

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

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