예제 #1
0
 public static void SetUp()
 {
     driver            = CustomDriver.GetChromeDriver();
     _mainAutoaibePage = new AutoaibePage(driver);
     _carDetailPage    = new AutoaibeCarDetailPage(driver);
     _disckBrakePage   = new DiscBrakePage(driver);
     _checkoutPage     = new AutoaibeCheckoutPage(driver);
 }
예제 #2
0
        public static void SetUp()
        {
            _driver = new ChromeDriver();

            _driver.Navigate().GoToUrl("https://www.autoaibe.lt/");
            _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
            _driver.Manage().Window.Maximize();
            _mainpage = new AutoaibePage(_driver);
            //_discBrakePage = new DiscBrakePage(_driver);
        }
예제 #3
0
        public void CheckIfCarISFound(string carYear, string carManufacturer, string carModel, string carEngine, string ResultText)
        {
            AutoaibePage page = new AutoaibePage(_driver);

            System.Threading.Thread.Sleep(4000);
            page.SelectFromCarYearDropDown(carYear);
            page.SelectFromCarMakeIDrDropDown(carManufacturer);
            page.SelectFromCarModelIDrDropDown(carModel);
            page.SelectFromCarEngineDropDown(carEngine);
            page.VerifyFoundResult(ResultText);
        }