Forum Discussion

Beginner_O's avatar
Beginner_O
New Contributor
14 years ago

CHILD-WINDOW is ‘UNEXPECTED’

TC = 7.52-trail version.    TC lang.= VBScript.    Application=C++, using Codejock SoftWare.                



TASK: In Dialog ‘ROTATE’: Click COLOR-but to open the standard COLOR Dialog. Select color ‘RED’ in COLOR Dialog; click <OK> to close COLOR Dialog. (See attached pictures)      




Sub Test1


  Dim dlgROTATE


  Set dlgROTATE = Aliases.SimClient.dlg


  dlgROTATE.btnColor.ClickButton



' It tries to select RED color in wrong dialog:


  Call dlgROTATE.Click(20, 76)



  dlgROTATE.btnOK.ClickButton


End Sub


 


Remarks for ‘Unexpected window’:   


Sys.Process("SimClient").Window("#32770", "Color", 1)


How can I make  COLOR Dialog ‘expected’?


1 Reply

  • Hi,



    Zip your entire project suite directory with logs and send us the archive.



    Make sure that the latest log of the failed test execution corresponds to the latest version of your test (there have been no modifications in the test since the last test log was generated).