Using Array to execute Selenium commands in C#

Here is an example of how you could you an array to execute repetitive selenium commands like selenium.IsElementPresent or selenium.Click.

string[] footerLinks = new string[] { link1, link2, link3, link4, link5, link6, link7, link8, link9};

foreach (string link in footerLinks)
{
selenium.Click(link);
selenium.WaitForPageToLoad(“30000”);
}

Submitted by: Horgan Barry
[ad#PostAD]