public bool CheckPageTitle() { var uiTitle = new HtmlControl(browser); uiTitle.SearchProperties.Add(HtmlControl.PropertyNames.Id, PageTitlesConst.PAGE_TITLE_ID); uiTitle.Find(); uiTitle.WaitForControlReady(); return(uiTitle.InnerText.ToString().Equals(PageTitlesConst.INDEX_DAILY_PLAN_TITLE)); }
public static string GetText() { var textControl = new HtmlControl(browserWindow); try { textControl.SearchProperties.Add(CSVReader.ControlType + ".PropertyNames." + CSVReader.LocatorType, CSVReader.LocatorValue); textControl.WaitForControlEnabled(); textControl.WaitForControlReady(); } catch (Exception) { Assert.Fail("Failed to find HtmlEdit Element - Element not Found"); } return Text = textControl.InnerText; }
public static string GetText() { var textControl = new HtmlControl(browserWindow); try { textControl.SearchProperties.Add(CSVReader.ControlType + ".PropertyNames." + CSVReader.LocatorType, CSVReader.LocatorValue); textControl.WaitForControlEnabled(); textControl.WaitForControlReady(); } catch (Exception) { Assert.Fail("Failed to find HtmlEdit Element - Element not Found"); } return(Text = textControl.InnerText); }