or
<td class="dr-dscr-button rich-datascr-button" onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': 'fastforward'});">»</td>var forward = (from b in Manager.ActiveBrowser.Find.AllControls<HtmlControl>() where b.ToString().Contains("»") select b); Console.WriteLine(forward.Count().ToString());HtmlControl forward = Manager.ActiveBrowser.Find.ByXPath<HtmlControl>("//tr/td[text()=\"»\"]");getXpathCount("//img[@src=\"/images/someImage.gif\"]");private SilverlightApp App { get { return this.Manager.ActiveBrowser.SilverlightApps()[0]; } } private HyperlinkButton Button { get { return this.UploadApp.FindName<HyperlinkButton>("_Button"); } } public void ClickUpload() { this.Button.User.Click(); //<<==== this doesn;t fire click for button specified. } var mySettings = new Settings(BrowserType.FireFox, "c:\\log");mySettings.ClientReadyTimeout = 200000;// Set to false if you are annoyed by red-yellow popups.mySettings.AnnotateExecution = true;mySettings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;var m = new Manager(mySettings);m.Start();m.LaunchNewBrowser();if (!m.ActiveBrowser.Window.IsMaximized){ m.ActiveBrowser.Window.Maximize();}m.Settings.ExecutionDelay = 100;m.ActiveBrowser.NavigateTo("http://aspspider.ws/kovyar");m.ActiveBrowser.AutoDomRefresh = true;m.ActiveBrowser.WaitUntilReady();Element loginfield = m.ActiveBrowser.Find.ById("ctl00_mainContentPlaceHolder_tbLogin");Element passwfield = m.ActiveBrowser.Find.ById("ctl00_mainContentPlaceHolder_tbPassword");m.ActiveBrowser.Actions.SetText(loginfield, "login"); //just to put anythingm.ActiveBrowser.Actions.SetText(passwfield, "pwd");Element mybtn = m.ActiveBrowser.Find.ById("ctl00_mainContentPlaceHolder_LogInButton");mybtn.As<HtmlControl>().Click();m.ActiveBrowser.WaitForUrl("StartPage.aspx", true, 10000);m.ActiveBrowser.WaitForFrame(new FrameInfo("MainFrameSet", null, null, 0), 10000);m.ActiveBrowser.RefreshDomTree();var mf = m.ActiveBrowser.Frames.ById("MainFrameSet");m.ActiveBrowser.WaitForFrame(new FrameInfo("frmLeft", string.Empty, string.Empty, 0), 10000);m.ActiveBrowser.RefreshDomTree();var f = m.ActiveBrowser.Frames.ById("frmLeft");f.WaitUntilReady();f.RefreshDomTree();var t = f.Find.ById<HtmlInputText>("treeFilterText");t.Click(); // this method doesn't workt.Text = "Hey Test!"; // neither does that.ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!InError set by the client. Client Error:mozCommandProcessor: FindElement(): Tag collection is either empty or has less elements than the element occurrence requested.TagName: , Occurrence Requested: -1, All Tags Collection length: 0BrowserCommand (Type:'Information',Info:'FrameRectangle',Action:'NotSet',Target:'null',Data:'2',ClientId:'Client_8c806e49-0c9d-48ed-a729-e2c2d2978a5c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: FindElement(): Tag collection is either empty or has less elements than the element occurrence requested.TagName: , Occurrence Requested: -1, All Tags Collection length: 0')InnerException: none.at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)at ArtOfTest.WebAii.Core.FrameInfo.GetRectangle()at ArtOfTest.WebAii.ObjectModel.Element.GetRectangle()at ArtOfTest.WebAii.Core.Actions.AnnotateElement(Element targetElement, String message, Boolean isNative)at ArtOfTest.WebAii.Core.Actions.AnnotateElement(Element targetElement, String actionName, String data, Boolean isNative)at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()at Tests.Test.Test1() in Test.cs: line 60