or
_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