コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: Common.cs プロジェクト: k3foru/CUIT_Framework
 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;
 }
コード例 #3
0
        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);
        }