Squish: Further improvement of switchViewTo()

Change-Id: I25f857f05120882427a8ba7569a4c1b66c474f5e
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
Robert Loehning
2012-03-27 15:26:38 +02:00
committed by Robert Löhning
parent 5ce804b53b
commit f3bb330ea0

View File

@@ -2,6 +2,8 @@ import re;
# this function switches the MainWindow of creator to the specified view # this function switches the MainWindow of creator to the specified view
def switchViewTo(view): def switchViewTo(view):
# make sure that no tooltip is shown, so move the mouse away and wait until all disappear
mouseMove(waitForObject(':Qt Creator_Core::Internal::MainWindow'), -20, -20)
waitFor("not QToolTip.isVisible()", 15000) waitFor("not QToolTip.isVisible()", 15000)
if view < ViewConstants.WELCOME or view > ViewConstants.LAST_AVAILABLE: if view < ViewConstants.WELCOME or view > ViewConstants.LAST_AVAILABLE:
return return