Hii can any one tell me how to loop a list of web elements using java and selenium web driver here is my code
these are the objects
By ProjectSummaryReport_Campaign = By.name("q.a.62.d");
By ProjectSummaryReport_ProjectTitle = By.name("q.a.1.d");
By ProjectSummaryReport_ProjectAllocation = By.name("q.a.63.d");
By ProjectSummaryReport_JobNumber = By.name("q.a.2.d");
By ProjectSummaryReport_ArchivalStatus = By.name("q.a.6.d");
By ProjectSummaryReport_StartDate = By.name("q.a.7.d");
By ProjectSummaryReport_EndDate = By.name("q.a.8.d");
this is the code
Wrappers.Click(ProjectSummaryReport_Campaign);
Wrappers.Click(ProjectSummaryReport_ProjectTitle);
Wrappers.Click(ProjectSummaryReport_ProjectAllocation);
Wrappers.Click(ProjectSummaryReport_JobNumber);
Wrappers.Click(ProjectSummaryReport_ArchivalStatus);
Wrappers.Click(ProjectSummaryReport_StartDate);
Wrappers.Click(ProjectSummaryReport_EndDate);
Click_Link method
public static void Click(By byobj) {
_driver.findElement(byobj).click();
}
please dont mined if any thing is wrong I am very new to this selenium automation thanks is advance for solutions