L19.2: Parameter Annotations

PHOTO EMBED

Thu Oct 19 2023 02:06:01 GMT+0000 (Coordinated Universal Time)

Saved by @testpro #java

@BeforeMethod
@Parameters({"BaseURL"})
public void launchBrowser(String BaseURL) {
  
  ChromeOptions options = new ChromeOptions();
  options.addArguments("--remote-allow-origins=*");

  WebDriver driver = new ChromeDriver(options);
  driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
  url = BaseURL;
  driver.get(url);
}
content_copyCOPY