Q: Selenium automated test using List of links and set of commands foreach item in list With Selenium Automated Testing, how do you collect a list of links and perform the same commands foreach item in that list? 
        IList<IWebElement> reviewLinks = driver.FindElements(By.TagName("a"));

        //I would like to perform the following for each Review item// in the //list
        reviewLinks.First(Review => Review.Text == "Review").Click();
        driver.FindElement(By.Id("ctlSeverity")).Click();
        driver.FindElement(By.XPath("//*[@value='75']")).Click();
        driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
        driver.FindElement(By.CssSelector("#rblSelectedAction_0")).Click();
        driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
        driver.FindElement(By.Id("TextBox1")).SendKeys("AutoTest");
        driver.FindElement(By.Id("ctlActionPlan")).SendKeys("AutoTest");
        driver.FindElement(By.Id("ctlManagementResponse")).SendKeys("AutoTest");
        driver.FindElement(By.Id("LinkButton1")).Click();


A: You could just use a simple foreach loop.
foreach(var link in reviewLinks)
{
    if(link.Text.Equals("Review"))
    {
        link.Click();
        driver.FindElement(By.Id("ctlSeverity")).Click();
        driver.FindElement(By.XPath("//*[@value='75']")).Click();
        driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
        driver.FindElement(By.CssSelector("#rblSelectedAction_0")).Click();
        driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
        driver.FindElement(By.Id("TextBox1")).SendKeys("AutoTest");
        driver.FindElement(By.Id("ctlActionPlan")).SendKeys("AutoTest");
        driver.FindElement(By.Id("ctlManagementResponse")).SendKeys("AutoTest");
        driver.FindElement(By.Id("LinkButton1")).Click();
    }
}

