cancel
Showing results for 
Search instead for 
Did you mean: 

How to check the pop-up window X button check in GUI

SOLVED
Contributor

How to check the pop-up window X button check in GUI

Hello every one,

 

I would like to do the GUI test for Window application. Actually I am trying to test the window pop- up item.  There I am checking the yes / no  and x buttons . After the Toolbarclick item Window is pop-uped and click on the cancel button. It executed successfully but for an error I try to used an if else condition .

where in my if condition I stated that the checking pop up window not exist log. checkpoint else log.error.

every times it states that VCLObject("UserChangePassword") is not found.(The operation was succesfull but it gives me this error)

here is the routine which gives the error

toolbar.ClickItem("Mainmenue|Datei|Kennwort ändern")
Delay(1000)
panel.VCLObject("btnCancel").ClickButton()
if not Aliases.OmegaClient2.VCLObject("UserChangePassword").Exists:
Log.CheckPoint("Kennwort ändern Abbrechen button .i.o.")
else:
Log.Error("Kennwort ändern Abbrechen button .n.i.o.")

 

please anyone help me regarding this issue ? or Is there any other approaches please help me?

 

Thanks and Regards

SivaKatheek Sreerm

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Hero

Re: How to check the pop-up window X button check in GUI

Hi SivaKatheek,

 

> Aliases.OmegaClient2.VCLObject("UserChangePassword").Exists

When you use the fully qualified object name in your test code, TestComplete assumes that you need this object for subsequent actions and thus reports an error if the object cannot be found.

If the object may not exists, then you need to try to find it and proceed according to the search result.

.WaitXXX() method must be used to tell TestComplete to try to search for the object and not report an error if the object is not found.

Thus,

Aliases.OmegaClient2.VCLObject("UserChangePassword").Exists

must be changed to

Aliases.OmegaClient2.WaitVCLObject("UserChangePassword", 500).Exists

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Highlighted
Contributor

Re: How to check the pop-up window X button check in GUI

Dear AlexKaras, 

 

Thank you very much for the info. Now, it works fine

 

Thanks again

Regards

SivaKartheek Sreeram

2 REPLIES 2
Community Hero

Re: How to check the pop-up window X button check in GUI

Hi SivaKatheek,

 

> Aliases.OmegaClient2.VCLObject("UserChangePassword").Exists

When you use the fully qualified object name in your test code, TestComplete assumes that you need this object for subsequent actions and thus reports an error if the object cannot be found.

If the object may not exists, then you need to try to find it and proceed according to the search result.

.WaitXXX() method must be used to tell TestComplete to try to search for the object and not report an error if the object is not found.

Thus,

Aliases.OmegaClient2.VCLObject("UserChangePassword").Exists

must be changed to

Aliases.OmegaClient2.WaitVCLObject("UserChangePassword", 500).Exists

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Highlighted
Contributor

Re: How to check the pop-up window X button check in GUI

Dear AlexKaras, 

 

Thank you very much for the info. Now, it works fine

 

Thanks again

Regards

SivaKartheek Sreeram

New Here?
Join us and watch the welcome video: