public static void ClickButton() { var btn = new HtmlButton(browserWindow) { TechnologyName = "Web" }; try { btn.SearchProperties.Add(CSVReader.ControlType + ".PropertyNames." + CSVReader.LocatorType, CSVReader.LocatorValue); btn.WaitForControlEnabled(); btn.WaitForControlReady(); } catch (Exception) { Assert.Fail("Failed to find " + CSVReader.ControlType + " Element - Element not Found"); } Mouse.Click(btn); }
public static void ClickButton() { var btn = new HtmlButton(browserWindow) { TechnologyName = "Web" }; try { btn.SearchProperties.Add(CSVReader.ControlType+".PropertyNames." + CSVReader.LocatorType, CSVReader.LocatorValue); btn.WaitForControlEnabled(); btn.WaitForControlReady(); } catch (Exception) { Assert.Fail("Failed to find " + CSVReader.ControlType + " Element - Element not Found"); } Mouse.Click(btn); }