public WebDriver driver; public ATUTestRecorder recorder;
@Before public void testUp() throws Exception { System.setProperty("webdriver.chrome.driver", "C:/chromedriver.exe"); DateFormat dateFormat = new SimpleDateFormat("yy-MM-dd HH-mm-ss"); Date date = new Date(); recorder = new ATUTestRecorder("C:/ScriptVideo/","TestVideo-" + dateFormat.format(date),false); recorder.start(); driver = new ChromeDriver(); driver.manage().window().maximize(); driver.navigate().to("
https://ufa.hh.ru/"); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); }