IMPORTANT: Don't miss our expanded TechEd conference, October 23-24, 2024 in Las Vegas. Gain more in-depth technical knowledge, and take a deeper dive into the nuts and bolts of AI, automation, and the UiPath platform. Register now.
publicclassLoanApplication{public string email {get;set;}public int income {get;set;}public int loanAmount {get;set;}public int loanTerm {get;set;}public int age {get;set;}public int expectedLoanRate {get;set;}}public class LoanApplication
{
public string email {get;set;}
public int income {get;set;}
public int loanAmount {get;set;}
public int loanTerm {get;set;}
public int age {get;set;}
public int expectedLoanRate {get;set;}
}
var loanResultsScreen = uiAutomation.Attach(ObjectRepository.Descriptors.UiBank.LoanResults);var actualLoanRate = loanResultsScreen.GetText(ObjectRepository.Descriptors.UiBank.LoanResults.LoanRate);
testing.VerifyExpression(actualLoanRate == myLoanApplication.expectedLoanRate.ToString(),"The expected and actual loan rates are equal.",true,"Verify Expression",true,false);var loanResultsScreen = uiAutomation.Attach(ObjectRepository.Descriptors.UiBank.LoanResults);
var actualLoanRate = loanResultsScreen.GetText(ObjectRepository.Descriptors.UiBank.LoanResults.LoanRate);
testing.VerifyExpression(actualLoanRate == myLoanApplication.expectedLoanRate.ToString(),"The expected and actual loan rates are equal.",true, "Verify Expression", true, false);