forked from qt-creator/qt-creator
Squish: Further improvement of switchViewTo()
Change-Id: I25f857f05120882427a8ba7569a4c1b66c474f5e Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
5ce804b53b
commit
f3bb330ea0
@@ -2,6 +2,8 @@ import re;
|
||||
|
||||
# this function switches the MainWindow of creator to the specified 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)
|
||||
if view < ViewConstants.WELCOME or view > ViewConstants.LAST_AVAILABLE:
|
||||
return
|
||||
|
Reference in New Issue
Block a user