marinesco-tests/src/test/java/ru/redrise/users_management/Suite.java
Dmitry Isaenko 6f1478bb59 init repo
2024-03-05 19:05:27 +03:00

26 lines
715 B
Java

package ru.redrise.users_management;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
public class Suite{
static ChromeDriver driver;
@BeforeSuite
public void beforeSuite() {
ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");
options.addArguments("--headless");
driver = new ChromeDriver(options);
driver.manage().window().setSize(new Dimension(1024, 768));
}
@AfterSuite
public void afterSuite() {
driver.close();
}
}