or
HtmlDiv gridDiv = Find.ById<HtmlDiv>("ctl00_cphApp_rdProducts_C_grdMyProducts"); // HTML ID = id="ctl00_cphApp_rdProducts_C_grdMyProducts"HtmlDiv content = gridDiv.Find.ByAttributes<HtmlDiv>("rdCenter"); // class=rdCenter HtmlTable table = content.Find.ByTagIndex<HtmlTable>("table", 0);Log.WriteLine("Rows Count: " + table.Rows.Count.ToString()); foreach (HtmlTableRow row in table.AllRows){ foreach (HtmlTableCell cell in row.Cells) { Log.WriteLine(cell.InnerText); }}_browser.WaitForFrame(new ArtOfTest.WebAii.Core.FrameInfo() { Id ="DetailsView" });public class VisualColourPicker : RadColorPicker{}This however now gives me. An error of "Unable to cast object of type 'ArtOfTest.WebAii.Controls.Xaml.Wpf.SolidColorBrush' to type 'ArtOfTest.WebAii.Silverlight.UI.Brush'." So I had to change my property code above to the following to get the selected colour.publicArtOfTest.WebAii.Controls.Xaml.Wpf.Color CustomSelectedColor{get{var but =this.Find.ByName<ArtOfTest.WebAii.Controls.Xaml.Wpf.Button>("ButtonPart");var rec = but.Find.ByType<ArtOfTest.WebAii.Silverlight.UI.Rectangle>();return(rec.FillasArtOfTest.WebAii.Silverlight.UI.SolidColorBrush).Color;}}Is there a reason why 1: simply VisualColourPicker.SelectedColor does not work out of the box in that its looking for some "LeftButton"var but =this.Find.ByName<ArtOfTest.WebAii.Controls.Xaml.Wpf.Button>("ButtonPart");var rec = but.Find.ByType<ArtOfTest.WebAii.Silverlight.UI.Rectangle>();var fill = (ArtOfTest.WebAii.Controls.Xaml.Wpf.SolidColorBrush)rec.GetProperty(newArtOfTest.WebAii.Silverlight.AutomationProperty("Fill",typeof(ArtOfTest.WebAii.Controls.Xaml.Wpf.SolidColorBrush)));returnfill.Color;
2: When I try and get the colour with myown property that the out of box Fill property then fails in an internal cast. Thanks