Forum Discussion

philip1_gonzale's avatar
philip1_gonzale
Occasional Contributor
12 years ago

TestExecute cannot find WPFObject during test run

During my test run testexecute cannot find a WPFObject.  The object is one that is referenced in each test but after executing a few tests it can no longer find the object.  I am using TestComplete 10.10 on the master and TestExecute 10.10 on the slaves.  Is there a way get around this?

5 Replies

  • philip1_gonzale's avatar
    philip1_gonzale
    Occasional Contributor
    Changing the timeout to 7000 (double the default) did not resolve the issue
  • Hi Philip,

     


    Can you post here the detailed description of the first errors you get from Test Log's Additional Info tab?


     

  • Hi Philip,

     


    Thanks for the log files.


    It looks like the test fails when trying to get access to objects on this block, right?




     


    This is the first error you get:


    Unable to find the object VBObject("lbPrice")


     


    How are you accessing problematic VBObject? Can you replace your code with this one?




    var block = //an object on which the lbPrice label is located


    block.Refresh();


    var price = block.WaitVBObject("lbPrice", 5000)


    price.Click();