Maximize a window

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Maximize a window

Postby ninaonao » Tue Oct 05, 2010 3:34 am

When I record my test steps, I tried to use the maximize button and double click, but neither of them works. The window tester's Recorder just skip to maximize the window, how to fix this???
ninaonao
 
Posts: 7
Joined: Mon Oct 04, 2010 4:38 am

Re: Maximize a window

Postby ninaonao » Tue Oct 05, 2010 4:04 am

Same with the scroll bar, the recorder just skip the step, how to make Window Tester record the step when I do actions with scroll bars?
ninaonao
 
Posts: 7
Joined: Mon Oct 04, 2010 4:38 am

Re: Maximize a window

Postby klaraward » Tue Oct 05, 2010 4:49 am

For scrollbars, look at this answer viewtopic.php?f=5&t=1429&start=0 (short summary, not supported by WT, use Abbot)
klaraward
 
Posts: 11
Joined: Tue Apr 13, 2010 1:33 am

Re: Maximize a window

Postby ninaonao » Tue Oct 05, 2010 6:04 am

Thanks!
ninaonao
 
Posts: 7
Joined: Mon Oct 04, 2010 4:38 am

Re: Maximize a window

Postby klaraward » Tue Oct 05, 2010 6:37 am

I recently avoided having to use scrollbars by using ensureThat(locator.hasFocus()), so I didn't have to scroll down to be able to press a button

http://code.google.com/intl/sv-SE/webto ... orfocusAPI

Maybe that can help, depending on why you want to scroll.
klaraward
 
Posts: 11
Joined: Tue Apr 13, 2010 1:33 am

Re: Maximize a window

Postby keertip » Tue Oct 05, 2010 8:38 am

To maximize the window, do

Code: Select all
ui.ensureThat(new WorkbenchLocator().isMaximized());
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Maximize a window

Postby ninaonao » Wed Oct 06, 2010 1:16 am

Thanks for help! :D
ninaonao
 
Posts: 7
Joined: Mon Oct 04, 2010 4:38 am

Re: Maximize a window

Postby keertip » Wed Oct 06, 2010 9:07 am

Glad that worked!
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron