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 13: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 04: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 05:18 Go to previous message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1304
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 identify/Click On Shell
Goto Forum:
  


Current Time: Tue Jul 22 19:40:30 EDT 2014

Powered by FUDForum. Page generated in 0.01689 seconds