示例#1
0
 public static void ClickHyperLink()
 {
     var hyperLink = new HtmlHyperlink(browserWindow);
     try
     {
         hyperLink.SearchProperties.Add(CSVReader.ControlType + ".PropertyNames." + CSVReader.LocatorType, CSVReader.LocatorValue);
         hyperLink.WaitForControlEnabled();
         hyperLink.WaitForControlReady();
     }
     catch (Exception)
     {
         Assert.Fail("Failed to find " + CSVReader.ControlType + " Element - Element not Found");
     }
     Mouse.Click(hyperLink);
 }
示例#2
0
        public static void ClickHyperLink()
        {
            var hyperLink = new HtmlHyperlink(browserWindow);

            try
            {
                hyperLink.SearchProperties.Add(CSVReader.ControlType + ".PropertyNames." + CSVReader.LocatorType, CSVReader.LocatorValue);
                hyperLink.WaitForControlEnabled();
                hyperLink.WaitForControlReady();
            }
            catch (Exception)
            {
                Assert.Fail("Failed to find " + CSVReader.ControlType + " Element - Element not Found");
            }
            Mouse.Click(hyperLink);
        }