# Создаем шаблон конфига из скрипта (без использования массива)
cat > ./syslog-template <<"EOF"
/var/log/syslog
{
rotate 10
size 10M
daily
missingok
copytruncate
notifempty
compress
delaycompress
sharedscripts
postrotate
invoke-rc.d syslog-ng reload > /dev/null
endscript
}
EOF
. template.sh
# или "source ./template.sh"
@BeforeAll
public void setUp() {
WebDriverManager.chromedriver().clearDriverCache().setup();
WebDriverManager.chromedriver().clearResolutionCache().setup();
WebDriverManager.chromedriver().driverVersion("122.0.6261.69").setup();
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless=new");
WebDriver driver = new ChromeDriver(options);
driver.get("https://***");
driver.close();
driver.quit();
Configuration.browser = "chrome";
Configuration.driverManagerEnabled = true;
Configuration.browserSize = "1920x1080";
Configuration.headless = false;
}
}
ChromeOptions options = new ChromeOptions();
options.setCapability("browserVersion", "latest-1");
options.setCapability("platformName", "MacOS Catalina");
WebDriverManager wdm = WebDriverManager.chromedriver().capabilities(options);
wdm.setup();
driver = wdm.remoteAddress("https://...").create();