コード例 #1
0
        public void Setup()
        {
            Log4netHelper.ConfigureLog4net(TestContext.CurrentContext.Test.FullName, Path.Combine(TestContext.CurrentContext.WorkDirectory, $"{TestContext.CurrentContext.Test.FullName}.txt"));
            log = Log4netHelper.GetLogger();

            log.Info($"Preparing {browser} driver");
            driver           = WebDriverFactory.CreateWebDriver(browser);
            screenshotHelper = new ScreenshotHelper((ITakesScreenshot)driver);
            scrollHelper     = new ScrollHelper(driver);
        }