or
// Launch a browser instance Manager.LaunchNewBrowser(BrowserType.InternetExplorer); Manager.Current.ActiveBrowser.ClearCache(BrowserCacheType.TempFilesCache); // The active browser ActiveBrowser.NavigateTo("http://anydomain.com"); // Find the google search box and set it to "Telerik"; Find.ByName<HtmlInputText>("ctrlLogin$txtUser").Text = "user"; // Click the Search button var loginButton = Find.ByExpression<HtmlSpan>(new HtmlFindExpression("TextContent=~Login", "class=Button_Text")); loginButton.Click(); ActiveBrowser.WaitUntilReady(); var mainFrame = ActiveBrowser.Frames["frMain"]; //mainFrame.RefreshDomTree(); //workFrame is found, workFrame is an iFrame
var workFrame = mainFrame.WaitForElement(5000, "id=WorkFrame");
---- PROBLEM STARTS HERE --- // form is null here var form = new HtmlControl(workFrame).Find.ById<HtmlForm>("MyStart"); var td = form.Find.ByAttributes<HtmlTableCell>("class=login_value"); var loginName = td.InnerText;<TextBox Grid.Column="1" Grid.Row="0" Width="200" Margin="2,2,20,2" Text="{Binding EditConcept.BusinessEntityName, Mode=TwoWay, ValidatesOnNotifyDataErrors=True, ValidatesOnExceptions=true, NotifyOnValidationError=True}" >