locked
Playback fails while Locating UI control succeeds RRS feed

  • Question

  • Hi all,
    Any idea how to help playback recognize an object that fails with the following msg:

    The playback failed to find the control with the given search properties. Additional Details:
    TechnologyName:  'Web'
    ControlType:  'Frame'
    TagName:  'FRAME'
    Id:  'LoadingFrame'
     Failed to find any control that matched the search condition Id='LoadingFrame' && ControlType='Frame'

    this object is located successfuly with the "Locate UI control".

    I have tried to set the following playback settings in different variations but is doesn't help:
    Playback.PlaybackSettings.MatchExactHierarchy = false;
    Playback.PlaybackSettings.SmartMatchOptions = SmartMatchOptions.TopLevelWindow;

    Thanks in advance,
    Neta
    Wednesday, June 29, 2011 9:53 AM

All replies

  • Some more details on this issue:

    W, 8168, 16, 2011/06/29, 13:33:32.010, 129466418470137, QTAgent32.exe, SLPlugin: Port 4503 already in use

    W, 8168, 16, 2011/06/29, 13:33:32.026, 129466471140684, QTAgent32.exe, SLPlugin: Port 943 already in use

    RemoveSearchPropertiesPackage: Handlers attached.

    W, 8168, 16, 2011/06/29, 13:33:32.338, 129467031801021, QTAgent32.exe, ExtensionFramework : A Technology Manager with name Web is already registered.

    W, 8168, 16, 2011/06/29, 13:33:32.588, 129467472485967, QTAgent32.exe, SLPlugin: Port 4503 already in use

    W, 8168, 16, 2011/06/29, 13:33:32.619, 129467519635095, QTAgent32.exe, SLPlugin: Port 943 already in use

    E, 8168, 16, 2011/06/29, 13:33:33.401, 129468919326300, QTAgent32.exe, LoadLibrary() : Unable to find the resource 37382 from assembly C:\WINDOWS\system32\en-US\ieframe.dll.mui: Error1814

    E, 8168, 16, 2011/06/29, 13:33:33.416, 129468956548275, QTAgent32.exe, LoadLibrary() : Unable to find the resource 41728 from assembly C:\WINDOWS\system32\en-US\ieframe.dll.mui: Error1814

    E, 8168, 16, 2011/06/29, 13:33:33.463, 129469031652177, QTAgent32.exe, LoadIEStrings() - Could not find user32 resource assembly in en-US or en-US

    W, 8168, 16, 2011/06/29, 13:33:34.057, 129470109424929, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='Multi Asset Historical Analysis - Windows Internet Explorer' && ClassName='IEFrame'

    E, 8168, 16, 2011/06/29, 13:33:34.073, 129470121701748, QTAgent32.exe, Playback - {1} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='Multi Asset Historical Analysis - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.)

    E, 8168, 16, 2011/06/29, 13:33:34.291, 129470538798477, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\n.itzhak\Local Settings\Temp\UITestLogs\LastRun\RPFD6.png

    W, 8168, 16, 2011/06/29, 13:33:34.307, 129470548655889, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId

    W, 8168, 16, 2011/06/29, 13:33:34.354, 129470650746786, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 819 ms. Expected it to take maximum 500 ms.

    E, 8168, 16, 2011/06/29, 13:33:40.901, 129482390901519, QTAgent32.exe, IEDOM : Search : Unable to find element

    E, 8168, 16, 2011/06/29, 13:33:40.948, 129482471667411, QTAgent32.exe, Exception: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException Message: [Web]ControlType='Frame' && TagName='FRAME' && Id='LoadingFrame' && FilterCondition(AbsolutePath='/Common/HistoricalAnalysis/Main', PageUrl='/Common/HistoricalAnalysis/Main?srcProduct=EQ&eUID=602UoR1A6mNoppLnG3/oJvMjkXTrNgL1Yy&defaultAsset=246%7C63', Title='', Class='', ControlDefinition='style="POSITION: absolute; WIDTH: 1012px', TagInstance='1') Stack Trace: at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IETestPlugin.Search(Object parsedQueryIdCookie, IUITechnologyElement parentElement, Int32 maxDepth) BaseExceptionMessage: [Web]ControlType='Frame' && TagName='FRAME' && Id='LoadingFrame' && FilterCondition(AbsolutePath='/Common/HistoricalAnalysis/Main', PageUrl='/Common/HistoricalAnalysis/Main?srcProduct=EQ&eUID=602UoR1A6mNoppLnG3/oJvMjkXTrNgL1Yy&defaultAsset=246%7C63', Title='', Class='', ControlDefinition='style="POSITION: absolute; WIDTH: 1012px', TagInstance='1')

    E, 8168, 16, 2011/06/29, 13:33:40.979, 129482541453726, QTAgent32.exe, Playback - {2} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;[Web]ControlType='Frame' && TagName='FRAME' && Id='LoadingFrame' && FilterCondition(AbsolutePath='/Common/HistoricalAnalysis/Main', PageUrl='/Common/HistoricalAnalysis/Main?srcProduct=EQ&eUID=602UoR1A6mNoppLnG3/oJvMjkXTrNgL1Yy&defaultAsset=246%7C63', Title='', Class='', ControlDefinition='style="POSITION: absolute; WIDTH: 1012px', TagInstance='1')) (The object specified was not found.)

    E, 8168, 16, 2011/06/29, 13:33:41.229, 129482975129526, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\n.itzhak\Local Settings\Temp\UITestLogs\LastRun\RPFD7.png

    W, 8168, 16, 2011/06/29, 13:33:41.245, 129482997943500, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId

    W, 8168, 16, 2011/06/29, 13:33:41.276, 129483057285972, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 3669 ms. Expected it to take maximum 500 ms.

    W, 8168, 16, 2011/06/29, 13:33:50.120, 129498934542174, QTAgent32.exe, IEDOM : StopSession of the plugin called before StartSession

    W, 8168, 16, 2011/06/29, 13:33:50.120, 129498940275813, QTAgent32.exe, UIA : StopSession of the plugin called before StartSession

    W, 8168, 16, 2011/06/29, 13:33:50.120, 129498946552449, QTAgent32.exe, SLPlugin : StopSession of the plugin called before StartSession

    Wednesday, June 29, 2011 10:36 AM
  • Problem solved.

    Seems like the frame object playback fails when ‘TagName’ property is not defined.

    Wednesday, June 29, 2011 4:30 PM