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); }
public static void SupplierSearchFilterTest(Tiekejas tiekejas) { _autorentalisHomePage .GoToPage() .SetPickUpAndDropOffPlace() .SelectPickUpAndDropOffDate() .PressSearchButton() .CheckSupplierCheckbox(tiekejas) .ClickFirstResultPickButton() .AssertOrderPage(); }