User Rob Warren (email@example.com) posted:
I am e new user for sqa robot and working with Peoplesoft.
I want to load a lot of data in the database with the robot but have got a
Some times (always on the same place a get a popup window) with a warning. I
want to test if the window is there or not so I can use an if then
statement. Bit I don not get it working. Who can send me an example of a
statement like below?
If window exists then
Else if window doesn't exist then
User Aidy Rutter (AidyR@TrustMarque.com.nospam) posted:
Welcome to Robot
Result = WindowVP (Exists, "Caption=frmMain", "VP=frmMain_WE")
If Result = RBTrue Then
Window SetContext, "Caption=frmMain", ""
Window CloseWin, "", ""
SQALogMessage sqaFail, "frmMain has not appeared", ""
Dim Result As Integer
Result = WindowVP (Exists, "Caption=Microsoft Internet Explorer", "VP=AccConflictDlg;Status=NORMAL")
If Result = sqaPass then
Window SetContext, "Caption=Microsoft Internet Explorer", ""
Window MoveTo, "", "Coords=215,332"
PushButton Click, "Text="& sOkCancel
SQALogMessage sqaNone, "The dialog box was displayed.", ""
SQALogMessage sqaNone, "The dialog box was not displayed", ""