cancel
Showing results for 
Search instead for 
Did you mean: 

"Exists" suddenly stopped working with no change in code, where as "VisibleOnscreen" is working.

New Contributor

"Exists" suddenly stopped working with no change in code, where as "VisibleOnscreen" is working.

call aqObject.CompareProperty(picMailAddressTip.Exists,cmpEqual,"-1",True,lmError)

This was working till last week. Now im getting the error 

Wrong number of arguments or invalid property assignment: 'Sys.Process(...).WinFormsObject(...).Exists'

 

 

5 REPLIES 5
Community Hero

Re: "Exists" suddenly stopped working with no change in code, where as "VisibleOnscre

Hi,

 

I would say it is strange that it was working...

.Exists returns boolean while you are comparing it to string.

Try

Call aqObject.CompareProperty(picMailAddressTip.Exists, cmpEqual, True, True, lmError)

instead. Does it work?

 

 

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/
================================
Community Hero

Re: "Exists" suddenly stopped working with no change in code, where as "VisibleOnscre


@vadi wrote:

call aqObject.CompareProperty(picMailAddressTip.Exists,cmpEqual,"-1",True,lmError)

This was working till last week. Now im getting the error 

Wrong number of arguments or invalid property assignment: 'Sys.Process(...).WinFormsObject(...).Exists'

 

 


My guess:

 

"picMailAddressTip" is a variable to which you're assigning a WinFormsObject...  however, that WinFormsObject does not Exist at the time of execution (possibly a timing delay).

 

I would replace your "WinFormsObject" to "WaitWinFormsObject" to properly account for the timing delay.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Frequent Contributor

Re: "Exists" suddenly stopped working with no change in code, where as "VisibleOnscre

New version of chrome is out and I am getting a few oddities. Maybe linked?

Above suggesitons seem good

New Contributor

Re: "Exists" suddenly stopped working with no change in code, where as "VisibleOnscre

Thanks guys for your prompt response. 

Tried with "True" as well as WaitWinFormObjects. Then I analyzed what is the change happened in the environment before the sucessful run and this failure. 

Found that Windows 10 pro Insider preview update, reverted the update and started working again. 

 

 

 

 

Community Hero

Re: "Exists" suddenly stopped working with no change in code, where as "VisibleOnscre

@vadi:

Hi,

 

Thank you for the update.

 

> Found that Windows 10 pro Insider preview update, reverted the update and started working again.

While SmartBear guys monitor Community forums, I think that it may be not a bad idea to create Support Ticket via the https://support.smartbear.com/message/?prod=TestComplete form to explicitly draw their attention to the potential problem.

 

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/
================================
New Here?
Join us and watch the welcome video:
Join the September Hub-bub to show off, learn and win