package browsers;
import org.testng.annotations.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.opera.OperaDriver;
import org.testng.annotations.BeforeTest;
public class SafariBrowser {
WebDriver driver;
@Test
public void SafariBrowser() throws Exception {
driver.get("http://www.seleniumlearn.com");
}
@BeforeTest
public void beforeTest() {
System.setProperty("webdriver.safari.driver", "D:\\lib\\SafariDriver.exe"); //--->Safaridriver path
driver = new SafariDriver();
driver.manage().window().maximize();
}
}