Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package automation.warcart;
- import java.util.concurrent.TimeUnit;
- import org.openqa.selenium.WebDriver;
- import org.openqa.selenium.chrome.ChromeDriver;
- public class Base {
- public static WebDriver getDriver() {
- //loading chrome driver from the folder
- System.setProperty("webdriver.chrome.driver","c:\\chromedriver.exe");
- WebDriver driver = new ChromeDriver();
- driver.manage().window().maximize();
- // giving the time value.
- driver.manage().timeouts().implicitlyWait(7, TimeUnit.SECONDS);
- return driver;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement