Esempio n. 1
0
        public static void SetText(string text)
        {
            var editControl = new HtmlEdit(browserWindow);

            try
            {
                editControl.SearchProperties[CSVReader.ControlType + ".PropertyNames." + CSVReader.LocatorType] = CSVReader.LocatorValue;
                editControl.WaitForControlEnabled();
                editControl.WaitForControlReady();
            }
            catch (Exception)
            {
                Assert.Fail("Failed to find " + CSVReader.ControlType + " Element - Element not Found");
            }
            editControl.Text = text;
        }
Esempio n. 2
0
 public static void SetText(string text)
 {
     var editControl = new HtmlEdit(browserWindow);
     try
     {
         editControl.SearchProperties[CSVReader.ControlType + ".PropertyNames." + CSVReader.LocatorType] = CSVReader.LocatorValue;
         editControl.WaitForControlEnabled();
         editControl.WaitForControlReady();
     }
     catch (Exception)
     {
         Assert.Fail("Failed to find "+CSVReader.ControlType+" Element - Element not Found");
     }
     editControl.Text = text;
 }