Ask a Question

CHILD-WINDOW is ‘UNEXPECTED’

Beginner_O
New Contributor

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 1
YMinaev
Staff

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).
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: