Contributions
Parameterizing Object Properties
I know this is possible as I have done it years ago but do not remember the syntax in order to accomplish this. I have an object and want to compare the existing property with the value. The property; however, is variable. How can I call the non-hard coded property variable for comparison? The CheckProperty will accept the property variable; however, I do not desire to log an error if the checkProperty returns false, nor do I desire to wait for the checkProperty to return true. i.e. Hard coded property If pobjItem.contentText <> pObjValue Then Call bObjectClick(pobjItem, pFindBy, pObjType, pObjValue, pTagName) call bFindNativeWebObjectAndClick(pFindBy, pObjType, pObjValue, pTagName, "", "") End if i.e. desired function with parameterize call to object property. pobjType = contentText (This Is passed by another function) If pobjItem.pobjType <> pObjValue Then Call bObjectClick Call bFindNativeWebObjectandClick End ifSolved2KViews0likes3CommentsRe: TC9.1: The object invoked has disconnected from its clients.
I am having the same exact issue when running the NativeWebObject on FireFox 23 and TC 9.31. The object exists within the Object Browser but we are getting "The object evoked has disconnected from its client." For some reason it happens in the same exact place everytime. Attaching the logs.1.9KViews0likes0CommentsRe: 438 Object doesn't support this property or method error message
OK have found that all of the code within NativeObject is superfluous. Eval(pstrPropertyName) returns the object; however, when adding "Set objGetObject =", Test complete is throwing a syntax error? Case "NATIVEOBJECT" Set objGetObject = Eval(pstrPropertyName) End Select Please Advise.1.3KViews0likes0CommentsRe: Changing Windows Forms names
You go over to the namemapper itself (Project WorkSpace => [ProjectName] => NameMapper). Find the top object and then right click to edit the object name. I'm afraid that I'm going off of memory here as we do not use the namemapper here so please pardon me if I'm missing a step but below is an article that should help. http://support.smartbear.com/viewarticle/33366/1.6KViews0likes0CommentsRe: how can upgrade TestComplete 8.0 to New/Latest version of TC
If you have the license for the 9.3 version, then you can go out to the website, download the trial version, it will see your installed version and either upgrade if it can or ask you to uninstall and then reinstall. After the software has been upgraded, then just point it to your license server.2.8KViews0likes0Comments438 Object doesn't support this property or method error message
We have a DDT Framework going on whereas we will be doing browser and Delphi application testing. We have the browser testing in place but want to add the Delphi AUT to the framework. The Excel document contains, either the object name or the xpath for the object to be manipulated which is then passed to the below script: As one can see from the below code, we have tried to create the object using the string, append to the object's name escaping the quotes, append the object's name without escaping the quotes and have even fooled around with setting up an ODT but nothing has worked and all throw the above error. How can we set the existing AUT object using a passed string? Thanks in advanced. Select Case UCase(pstrFindMethod) Case "NATIVEWEBOBJECT" If IsNull(pstrTagName) Then pstrTagName = "" Set objGetObject = objGetPage(pstrPageURL, gstrBrowserType).NativeWebObject.Find(pstrPropertyName, pstrPropertyValue, pstrTagName) If ObjectExists(objGetObject) = False Then Set objGetObject = Nothing Log.Error("The Object " & pstrPropertyName & pstrPropertyValue & pstrTagName & " does not exist.") End If Case "EVALUATEXPATH" Set objGetObject = objGetPage(pstrPageURL, gstrBrowserType).EvaluateXPath(pstrPropertyName)(0) If ObjectExists(objGetObject) = False Then Set objGetObject = Nothing Log.Error("The Object " & pstrPropertyName & pstrPropertyValue & pstrTagName & " does not exist.") End If Case "NATIVEOBJECT" ' objGetObject = CreateObject(pstrPropertyName) ' CreateStackClass ' Set Stack = ODT.Classes.New("ClsStack") ' ' Sys.Refresh '' Stack.PUSH(pstrPropertyName) ' For y =0 to Sys.ChildCount -1 ' if Sys.Child(i) ' Next if inStr(pstrPropertyName, "Sys.Process(" & Chr(34) & "EMDs" & Chr(34) & ")") > 0 Then pstrPropertyName = Right(pstrPropertyName, len(pstrPropertyName) -20) End If 'Remove all quotes from the string If inStr(pstrPropertyName, Chr(34)) > 0 Then For y = 1 to len(pstrPropertyName) If Right(left(pstrPropertyName, y), 1) = chr(34) Then tstrPropertyName = tstrPropertyName & Chr(34) & Chr(34) & Chr(34) else tstrPropertyName = tstrPropertyName & Right(left(pstrPropertyName, y), 1) End if Next End If pstrPropertyName = tstrPropertyName Set objGetObject = Sys.Process("EMDs") & "." & pstrPropertyName End Select7.4KViews0likes2Comments