var one = 1;
for (int i = 0; i < 5; i++)
{
var deal = driver.FindElement(By.XPath("/html/body/div[3]/table/tbody/tr/td[1]/table/tbody/tr[2]/td/table/tbody/tr[" + one + "]/td/a/font"));
deal.Click();
one++;
one = one + 1;
}
将var deal删除,在后面直接加click(),点击事件