Skip to main content
Format code
Source Link
Kate Paulk
  • 31.5k
  • 8
  • 55
  • 109

public WebDriver driver;// = new FirefoxDriver(); public String baseURL = "";

@BeforeTest public void setBaseURL(){ driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS); baseURL ="https://www.mytestsite.com"; driver.get(baseURL); }

public  WebDriver driver;// = new FirefoxDriver();
public String baseURL = "";

@BeforeTest
 public void setBaseURL(){
   driver = new FirefoxDriver();
   driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS);
   baseURL ="https://www.mytestsite.com";
   driver.get(baseURL);
}

public WebDriver driver;// = new FirefoxDriver(); public String baseURL = "";

@BeforeTest public void setBaseURL(){ driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS); baseURL ="https://www.mytestsite.com"; driver.get(baseURL); }

public  WebDriver driver;// = new FirefoxDriver();
public String baseURL = "";

@BeforeTest
 public void setBaseURL(){
   driver = new FirefoxDriver();
   driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS);
   baseURL ="https://www.mytestsite.com";
   driver.get(baseURL);
}
Source Link

public WebDriver driver;// = new FirefoxDriver(); public String baseURL = "";

@BeforeTest public void setBaseURL(){ driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS); baseURL ="https://www.mytestsite.com"; driver.get(baseURL); }