hhowe
8 years agoOccasional Contributor
Script Extension property returning error in Python script
I'm having issues with a script extension I wrote in VBScript and am trying to use in a Python script. The extension works fine from within a VBScript test. I'm running TestComplete12.30. def MyT...
- 8 years ago
I believe you need to use the https://support.smartbear.com/testcomplete/docs/reference/language/python/getprop-method.html
It's similar to the JavaScript $get method. The reason being is that what is being returned is being returned as a COM object...
Just verifying... NavItemVisible is a property, not a method in your Script Extension, correct?
If it is a property, your syntax should be
def MyTestFunction():
MyResult = AEWeb.__getprop__("NavItemVisible", "Views", "Active Process Information")
See the section here https://support.smartbear.com/testcomplete/docs/scripting/specifics/python.html about using parameterized properties.