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
by Ali Anwar » Tue Mar 23, 2010 11:59 pm
Hi,
I switched to window Tester version 5.0 from 4.0 and there is no more ui.setFocus(locator). Whats the immediate replacement of it??
Thanks,
Ali
-
Ali Anwar
-
- Posts: 8
- Joined: Wed Dec 02, 2009 9:31 pm
by keertip » Wed Mar 24, 2010 2:06 pm
Instead of a ui.setFocus(locator) you would do a
ui.ensureThat( locator.hasFocus());
-
keertip
- Moderator
-
- Posts: 221
- Joined: Thu Mar 15, 2007 10:26 am
by Ali Anwar » Wed Mar 24, 2010 10:22 pm
It seems that method hasFocus is undefined for the for type IWidgetLocator.
-
Ali Anwar
-
- Posts: 8
- Joined: Wed Dec 02, 2009 9:31 pm
Return to Window Tester
Who is online
Users browsing this forum: No registered users and 1 guest