コード例 #1
0
 public static void CheckRelatedLinks()
 {
     for (int i = 0; i < 4; i++)
     {
         ObjectIdentification.AddUpdateSearchProperties(BING.SearchResultsUI.relatedSearchesHyperlink, "TagInstance", (i + 1).ToString());
         BingScriptsBase.BingTestContext.WriteLine(BING.SearchResultsUI.relatedSearchesHyperlink.InnerText);
     }
 }
コード例 #2
0
        public static void NavigateLinks()
        {
            string linkText = Data.GetValue("ResultLinksText");

            // ObjectIdentification.UpdateSearchProperties(linkText);
            ObjectIdentification.AddUpdateSearchProperties(BING.SearchResultsUI.resultLink, "InnerText", linkText);
            UITestControlCollection col = BING.SearchResultsUI.resultLink.FindMatchingControls();

            Mouse.Click(BING.SearchResultsUI.resultLink);
        }