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