示例#1
0
        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);
        }
示例#2
0
 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);
 }