Forum Discussion

iamaqa's avatar
iamaqa
New Contributor
2 years ago
Solved

modularize object path

TestComplete version: 15.42.9.7 x64 I'm using python for the Unit test script.   Question: how do you modularized an object path in TestComplete?   example   from this: aqObject.CheckProperty...
  • iamaqa's avatar
    2 years ago

    I found a solution and it's working!

    need to use the eval() function to convert string to a python object

     

    aqObject.CheckProperty(eval(TextBlock+UserName.title().replace(".","")), "WPFControlText", cmpEqual, UserName)