I am using WEBAii framework to write test script for Silverlight test automation in C#
Also I am using WebUI Test Studio QA to record n play test scenario steps. Using one step, Test Studio found Silverlight control and when I checked FindLogic in the property window for the element found I see following expression
Now my question is how to write C# statement to find the same element. I wrote C# statement as followed but element is not found. Where I am going wrong in writing following statment ?
Thank You and Best Regards !
/ Yogesh
Also I am using WebUI Test Studio QA to record n play test scenario steps. Using one step, Test Studio found Silverlight control and when I checked FindLogic in the property window for the element found I see following expression
[name 'Exact' TabsContainer] AND [XamlTag 'Exact' grid][XamlPath 'Exact' /radtabcontrol[automationid=Tabs]/grid[0]/raddockpanel[0]/layouttransformcontrol[name=HeaderDockedElement]/grid[name=RootVisual]/contentpresenter[name=ContentPresenter]/grid[0]/raddockpanel[0]/scrollviewer[automationid=ScrollViewerElement]/border[0]/grid[0]/scrollcontentpresenter[name=ScrollContentPresenter]/itemspresenter[0]/tabwrappanel[0]/radtabitem[0]]
Now my question is how to write C# statement to find the same element. I wrote C# statement as followed but element is not found. Where I am going wrong in writing following statment ?
FrameworkElement myElement = app.Find.ByExpression(new XamlFindExpression("Name=TabsContainer", "|", "XamlTag=ScrollViewer", "|", "XamlPath=/radtabcontrol[automationid=Tabs]/grid[0]/raddockpanel[0]/layouttransformcontrol[name=HeaderDockedElement]/grid[name=RootVisual]/contentpresenter[name=ContentPresenter]/grid[0]/raddockpanel[0]/scrollviewer[automationid=ScrollViewerElement]/border[0]/grid[0]/scrollcontentpresenter[name=ScrollContentPresenter]/itemspresenter[0]/tabwrappanel[0]/radtabitem[0]"));
Thank You and Best Regards !
/ Yogesh