Пример #1
0
        public AddContractPage FillAndVerifyDealSetupFormFields(AddContractPage ContractSetup)
        {
            WaitHelper.WaitForElement(By.XPath(vehicleInformationPath), 10);
            Driver.FindElement(By.XPath(saleOdometerPath)).SendKeys(ContractSetup.SaleOdom);
            VerifyAndAssertElementByXpath(saleOdometerPath, ContractSetup.SaleOdom);

            Driver.FindElement(By.XPath(vinPath)).SendKeys(ContractSetup.Vin);
            VerifyAndAssertElementByXpath(vinPath, ContractSetup.Vin);

            Driver.FindElement(By.XPath(financeTypePath)).SendKeys(ContractSetup.FinanceType);
            VerifyAndAssertElementByXpath(financeTypePath, ContractSetup.FinanceType);

            var element = Driver.FindElement(By.XPath(amountFinancedPath));

            element.Click();
            element.SendKeys(ContractSetup.AmountFinanced);
            VerifyAndAssertElementByXpath(amountFinancedPath, expectedAmountFinancedValue);

            Driver.FindElement(By.XPath(financeTermPath)).SendKeys(ContractSetup.FinanceTerm);
            VerifyAndAssertElementByXpath(financeTermPath, ContractSetup.FinanceTerm);

            Driver.FindElement(By.XPath(lenderNumberPath)).SendKeys(ContractSetup.LenderNumber);
            VerifyAndAssertElementByXpath(lenderNumberPath, ContractSetup.LenderNumber);
            return(this);
        }
Пример #2
0
 public AddContractPage VerifyFieldsAutodecode(AddContractPage ContractSetup)
 {
     Thread.Sleep(1000);
     VerifyAndAssertElementByXpath(yearPath, ContractSetup.Year);
     VerifyAndAssertElementByXpath(makePath, ContractSetup.Make);
     VerifyAndAssertElementByXpath(modelPath, ContractSetup.Model);
     return(this);
 }