1 | # -*- coding: utf-8 -*- |
---|
2 | |
---|
3 | def main(): |
---|
4 | startApplication("sasview") |
---|
5 | test.compare(waitForObjectExists(":qt_workspacechild.Fit panel - Active Fitting Optimizer: Levenberg-Marquardt_QWorkspaceTitleBar").visible, True) |
---|
6 | mouseClick(waitForObject(":groupBox.cbFitting_QComboBox"), 70, 10, 0, Qt.LeftButton) |
---|
7 | mouseClick(waitForObjectItem(":groupBox.cbFitting_QComboBox", "Invariant"), 52, 4, 0, Qt.LeftButton) |
---|
8 | test.compare(str(waitForObjectExists(":groupBox.cbFitting_QComboBox").currentText), "Invariant") |
---|
9 | test.compare(waitForObjectExists(":qt_workspacechild.Invariant Perspective_QWorkspaceTitleBar").visible, True) |
---|
10 | test.compare(str(waitForObjectExists(":qt_workspacechild.Invariant Perspective_QWorkspaceTitleBar").windowTitle), "Invariant Perspective") |
---|
11 | mouseClick(waitForObject(":groupBox.cbFitting_QComboBox"), 76, 13, 0, Qt.LeftButton) |
---|
12 | mouseClick(waitForObjectItem(":groupBox.cbFitting_QComboBox", "Fitting"), 61, 6, 0, Qt.LeftButton) |
---|
13 | test.compare(str(waitForObjectExists(":groupBox.cbFitting_QComboBox").currentText), "Fitting") |
---|
14 | test.compare(waitForObjectExists(":qt_workspacechild.Fit panel - Active Fitting Optimizer: Levenberg-Marquardt_QWorkspaceTitleBar").visible, True) |
---|
15 | test.compare(str(waitForObjectExists(":qt_workspacechild.Fit panel - Active Fitting Optimizer: Levenberg-Marquardt_QWorkspaceTitleBar").windowTitle), "Fit panel - Active Fitting Optimizer: Levenberg-Marquardt") |
---|