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; }
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; }