Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void test2() {
- WebDriver webDriver = getDriverWithoutCookie("http://www.imt-atlantique.fr/fr");
- WebElement link = webDriver.findElement(By.partialLinkText("Toutes les actualités".toUpperCase()));
- link.click();
- webDriver.findElement(By.partialLinkText("Accueil"));
- System.out.println("link found");
- webDriver.quit();
- }
- private static void test3(){
- WebDriver webDriver = getDriverWithoutCookie("http://www.imt-atlantique.fr/fr");
- webDriver.findElement(
- By.partialLinkText("Toutes les actualités".toUpperCase())
- ).click();
- WebElement image = webDriver.findElement(By.xpath("//img[@alt='Accueil']"));
- image.click();
- webDriver.findElement(By.partialLinkText("Toutes les actualités".toUpperCase()));
- System.out.println("Link found");
- webDriver.quit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement