How to verify links
How to verify whether links are present or not? eg. I have 10 links in a page, I want to verify the particular link Is it possible? I am using selenium with Java. Does i can write inside the selenium code eg selenium.click("searchimage-size"); selenium.waitForPopUp("dataitem", "3000"); selenium.selectWindow("name=dataitem"); foreach(var link in getMyLinkTextsToTest()) { var elementToTest = driver.findElement(By.linkText(link)); Assert.IsNotNull(elementToTest); }
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.