예제 #1
0
        public AutorentalisOrderPage AssertSupplier(Tiekejas tiekejas)
        {
            WaitToLoad();
            string supplierName = Convert.ToString(tiekejas);

            Assert.That(_supplierTermsText.Text.Contains(supplierName), "Supplier name does not match the requested supplier");
            return(this);
        }
        public AutorentalisSearchPage CheckSupplierCheckbox(Tiekejas tiekejas)
        {
            WaitToLoad();

            int         tiekejoValue      = Convert.ToInt32(tiekejas);
            IWebElement _supplierCheckbox = Driver.FindElement(By.XPath($"//label[@class='custom-control-label' and @for='supplier{tiekejoValue}']"));

            _supplierCheckbox.Click();
            return(this);
        }
예제 #3
0
 public static void SupplierSearchFilterTest(Tiekejas tiekejas)
 {
     _autorentalisHomePage
     .GoToPage()
     .SetPickUpAndDropOffPlace()
     .SelectPickUpAndDropOffDate()
     .PressSearchButton()
     .CheckSupplierCheckbox(tiekejas)
     .ClickFirstResultPickButton()
     .AssertOrderPage();
 }