Exemplo n.º 1
0
 public void SetUpTest()
 {
     this.Driver = new ChromeDriver();
     Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
     mainPage    = new MainPage(this.Driver);
     loginPage   = new LoginPage(this.Driver);
     helper      = new Helper(this.Driver);
     laptopsPage = new LaptopsPage(this.Driver);
 }
Exemplo n.º 2
0
        public void Test1()
        {
            var laptopsPage = new LaptopsPage(_driver);

            laptopsPage.Open();
            laptopsPage.FilterBrand(Environment.GetEnvironmentVariable("Brand"));
            laptopsPage.FilterPriceFrom(Int32.Parse(Environment.GetEnvironmentVariable("PriceFrom")));
            laptopsPage.FilterPriceTo(Int32.Parse(Environment.GetEnvironmentVariable("PriceTo")));
            laptopsPage.ValidateResults();
        }