Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package testauto;
- import org.openqa.selenium.By;
- import org.openqa.selenium.WebDriver;
- import org.openqa.selenium.firefox.FirefoxDriver;
- import org.testng.annotations.Test;
- public class calc {
- @Test
- public void testLinkUno() throws Exception {
- WebDriver driver = new FirefoxDriver ();
- driver.get("http://www.calculator.net/");
- driver.findElement(By.linkText("Financial Calculators")).click();
- driver.quit();
- }
- @Test
- public void testLinkDos() throws Exception {
- WebDriver driver = new FirefoxDriver ();
- driver.get("http://www.calculator.net/");
- driver.findElement(By.linkText("Fitness & Health Calculators")).click();
- driver.quit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement