예제 #1
0
 public static void InitDriver()
 {
     if (!ScenarioContext.Current.ScenarioInfo.Tags.Contains("API"))
     {
         _driver = new ChromeDriver();
         _driver.Manage().Window.Maximize();
         _driver.Navigate().GoToUrl("https://parabank.parasoft.com");
         accountServicePage = new AccountOverViewPage(_driver);
     }
 }
예제 #2
0
        public static void BeforeTestRun()
        {
            Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
            PathReport = $"{Environment.CurrentDirectory}ExtentReport.html";

            _driver = new ChromeDriver();
            _driver.Manage().Window.Maximize();
            _driver.Navigate().GoToUrl("https://parabank.parasoft.com");
            accountServicePage = new AccountOverViewPage(_driver);

            var reporter = new ExtentHtmlReporter(PathReport);

            _extent = new ExtentReports();
            _extent.AttachReporter(reporter);
        }
 public void ThenUserLogOutFromTheApplication()
 {
     accountServicePage = new AccountOverViewPage(_driver);
     accountServicePage.LogOut();
 }