i m trying to go through a list of ahref links in a web page and click on each link at a time. i managed to list all the links and display them using the GetAttribute method, but i m struggling to click on each link. Any advise please or similar example in C# with using selenium would be appreciated?
The reason i need to do this is to try and check that all the links can be clicked and don't return a page not found error
Thank in advance
List<IWebElement> item = new List<IWebElement>(); foreach (IWebElement item in OpenPageSteps.driver1.FindElements(By.TagName("a"))) { if (item.Displayed) { Console.WriteLine(item.GetAttribute("href")); } }`