I would like to test an Image carousel using Selenium C#
An example of the type of the type of carousel can be found here: http://bxslider.com/
Maybe the test could click on the next image, assert that there is an image and then perhaps in the last image attempt to click on a link to lead us to a new page
Below is what I attempted so far but I have no idea to check an image is present and to click on the link on the last image
IList<IWebElement> Parent = Driver.Instance.FindElements(By.XPath("//*[@class='pagination']/li"));
int ListCount = Parent.Count;
for (int i = 0; i < ListCount; i++)
{
var wait = new WebDriverWait(Driver.Instance, TimeSpan.FromSeconds(3));
var arrow = Driver.Instance.FindElement(By.XPath(".//*[@id='cpBanners_ucc1_ctl00_rptSlides_hlProperty_0']"));
arrow.Click();
}
Any help would be much appreciated, Thanks