Coded UI hand code handling URL RRS feed

  • Question

  • Hi,

    I am writing a hand code script in C# for coded ui

    first step its launch application and click on hyperlink its navigated to another page there next control hyperlink is not able to identify.

    If first step is  launching the URL of the failed control page directly its able to identify the control.

    For this how to handle the URL navigation in coded ui. Even i tried the Html Document control before that the control which is failing. even the error is same.

    The error is below

    Result Message:
    Test method CUIHandCodeWeb.CUIHCWeb.CUIHCWebtMethod threw exception: 
    Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: 
    TechnologyName:  'Web'
    ControlType:  'Hyperlink'
    InnerText:  'View Plane'
     Failed to find any control that matched the search condition ControlType='Hyperlink' && InnerText='View Plane' ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.


    Kasani Anvesh

    Thursday, July 9, 2015 4:21 AM


All replies