public static void BPOPictures() { SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(6) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B1.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(9) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B2.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(10) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B3.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(13) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C1.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(14) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C2.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(15) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C3.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(16) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C4.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(17) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C5.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(38) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\H1.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(39) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\H2.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(40) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B3.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(42) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\H4.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(43) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\H5.jpg"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabPropInfoPat2 > tbody:nth-child(1) > tr:nth-child(44) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\H6.jpg"); SeleniumSetMethods.Click(ElementType.Name, "upDoneDate"); SeleniumSetMethods.Wait(ElementType.Name, "btnUploadPics"); SeleniumSetMethods.Click(ElementType.Name, "btnUploadPics"); SeleniumWindowMethods.Sleep(5); }
public static void Id_Refresh(string element) { int tries = 0; bool IsElementPresent = false; while (IsElementPresent == false) { try { tries = tries + 1; Global.ConsoleOut("Attempting to find Element: " + element + " " + tries + " Attempt(s)"); SeleniumSetMethods.Wait(ElementType.Id, element); SeleniumSetMethods.Find(ElementType.Id, element); Global.ConsoleOut("Element found: " + element); IsElementPresent = true; break; } catch { Global.ConsoleOut("Element not present: " + element); SeleniumWindowMethods.Sleep(1); PropertiesCollection.driver.Navigate().Refresh(); } if (tries == 15) { Global.ConsoleOut(element + " not found and " + tries + " maxium tries has been reached"); break; // handle error and break/return } } }
public static void CompleteAppraisal() { // Order Queue Page Random r = new Random(); int n = 0; SeleniumSetMethods.Wait(ElementType.LinkText, "Clear"); SeleniumSetMethods.Click(ElementType.LinkText, "Clear"); SeleniumSetMethods.Wait(ElementType.Id, "btnSearchOrders"); SeleniumSetMethods.Click(ElementType.Id, "btnSearchOrders"); SeleniumSetMethods.Click(ElementType.PartialLinkText, Global.OrderID); SeleniumSetMethods.Wait(ElementType.Id, "btnOrderDetailMainUpdate"); SeleniumSetMethods.Click(ElementType.Id, "btnOrderDetailMainUpdate"); SeleniumSetMethods.Wait(ElementType.PartialLinkText, "Audit"); SeleniumSetMethods.Click(ElementType.PartialLinkText, "Audit"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Wait(ElementType.Id, "btnTabsAuditSendToClient"); SeleniumSetMethods.Click(ElementType.Id, "btnTabsAuditSendToClient"); SeleniumSetMethods.AlertWait(); SeleniumWindowMethods.Assertion(Alert.Accept); SeleniumWindowMethods.Sleep(1); n = r.Next(3); Global.ConsoleOut("CustomerServiceGradeModal_" + n); SeleniumSetMethods.Wait(ElementType.Id, "CustomerServiceGradeModal_" + n); SeleniumSetMethods.Click(ElementType.Id, "CustomerServiceGradeModal_" + n); n = r.Next(3); Global.ConsoleOut("CustomerQualityGradeModal_" + n); SeleniumSetMethods.Wait(ElementType.Id, "CustomerQualityGradeModal_" + n); SeleniumSetMethods.Click(ElementType.Id, "CustomerQualityGradeModal_" + n); SeleniumSetMethods.Wait(ElementType.XPath, "(//button[@type='button'])[4]"); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[4]"); SeleniumWindowMethods.Sleep(15); }
public static void uatAttachments() { SeleniumSetMethods.Wait(ElementType.CssSelector, "button.r-button.r-button-expand-all"); SeleniumSetMethods.Click(ElementType.CssSelector, "button.r-button.r-button-expand-all"); // Add Exterior Attachments to RA Order Global.ConsoleOut("Begin adding images at " + DateTime.Now); SeleniumSetMethods.Clear(ElementType.Id, "15_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "15_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C1.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "16_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "16_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C2.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "22_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "22_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C3.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "23_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "23_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C4.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "24_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "24_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C5.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "32_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "32_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\AUpload.pdf"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "33_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "33_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\AUpload.pdf"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "34_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "34_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\AUpload.pdf"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "1543_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "1543_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\AUpload.pdf"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "1544_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "1544_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\AUpload.pdf"); SeleniumWindowMethods.ThrottlingSleep(); Global.ConsoleOut("Start praying for the next 30 seconds, beginning at " + DateTime.Now); SeleniumWindowMethods.Sleep(30); SeleniumSetMethods.Click(ElementType.CssSelector, ".r-footer > div:nth-child(1) > div:nth-child(1) > button:nth-child(3)"); Global.ConsoleOut("Submit button Clicked " + DateTime.Now); SeleniumWindowMethods.WindowType(WinType.Popup); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[9]"); SeleniumWindowMethods.WindowType(WinType.Main); SeleniumWindowMethods.Sleep(5); }
public static void ReadySetGo() { IWebDriver driver = new ChromeDriver(); // IWebDriver driver = new InternetExplorerDriver(); // IWebDriver driver = new FirefoxDriver(); PropertiesCollection.driver = driver; SeleniumWindowMethods.WindowActions(ActType.Maximize); Global.StartDT = DateTime.Now; Global.ConsoleOut("Test started @ " + Global.StartDT); }
public static void AddAgent() { SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPEDIT']"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'AM_PROPEDIT']"); // Add Edit this Property iFrame SeleniumWindowMethods.iFrame("externalSite"); SeleniumSetMethods.Clear(ElementType.Name, "pdUpb"); SeleniumSetMethods.EnterText(ElementType.Name, "pdUpb", "350000"); SeleniumSetMethods.Click(ElementType.Name, "btnUpdate"); // Focus Main page SeleniumWindowMethods.WindowType(WinType.Main); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPINS']"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'AM_PROPINS']"); Global.ConsoleOut("The value for this field should be ($350,000): " + SeleniumGetMethods.GetTextValue(ElementType.Name, "piFcBal")); SeleniumSetMethods.Wait(ElementType.CssSelector, "#column2 > tbody:nth-child(1) > tr:nth-child(3) > td:nth-child(1) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#column2 > tbody:nth-child(1) > tr:nth-child(3) > td:nth-child(1) > a:nth-child(1)"); // Assign Agent SeleniumWindowMethods.iFrame("imsb-iframe"); SeleniumSetMethods.Wait(ElementType.Name, "apsFirst"); SeleniumSetMethods.EnterText(ElementType.Name, "apsFirst", "ivan"); SeleniumSetMethods.Click(ElementType.CssSelector, "input.btnGreen"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Wait(ElementType.Name, "btnAssign_250922"); SeleniumSetMethods.Click(ElementType.Name, "btnAssign_250922"); //Pre Marketing Tab SeleniumWindowMethods.Sleep(3); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPPREMKT']"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'AM_PROPPREMKT']"); SeleniumSetMethods.Clear(ElementType.Name, "pmBpoOrdDt"); SeleniumSetMethods.Click(ElementType.Id, "InputForm"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Clear(ElementType.Name, "pmBpoDueDt"); SeleniumSetMethods.Click(ElementType.Id, "InputForm"); SeleniumSetMethods.EnterText(ElementType.Name, "pmBpoOrdDt", Global.MMddyyDate); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Click(ElementType.Id, "InputForm"); SeleniumSetMethods.EnterText(ElementType.Name, "pmBpoDueDt", Global.NextMonth); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Click(ElementType.Id, "InputForm"); SeleniumSetMethods.Click(ElementType.Name, "btnUpdate"); }
public static void AcceptScheduleAppointment() { // Accept Schedule Appointment - Datetime Now SeleniumSetMethods.Wait(ElementType.PartialLinkText, "Tasks"); SeleniumSetMethods.Click(ElementType.PartialLinkText, "Tasks"); SeleniumSetMethods.Wait(ElementType.Id, "clearButton"); SeleniumSetMethods.Click(ElementType.Id, "clearButton"); SeleniumSetMethods.Click(ElementType.Id, "searchButton"); SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.Wait(ElementType.Id, "cbScheduleAppointment(Appraiser)"); SeleniumSetMethods.Click(ElementType.Id, "cbScheduleAppointment(Appraiser)"); int tries = 0; bool IsAppointmentPresent = false; while (IsAppointmentPresent == false) { try { SeleniumSetMethods.Click(ElementType.Id, "searchButton"); // refreshing results tries = tries + 1; Global.ConsoleOut("Attempting to Schedule Appointment: " + tries + " Attempt(s)"); SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.Click(ElementType.PartialLinkText, "Schedule Appointment"); Global.ConsoleOut("Appointment Found"); IsAppointmentPresent = true; break; } catch (Exception) { } if (tries == 10) { Global.ConsoleOut("Appointment Not Found"); break; // handle error and break/return } SeleniumWindowMethods.Sleep(25); SeleniumSetMethods.Click(ElementType.PartialLinkText, "Tasks"); SeleniumWindowMethods.Sleep(5); } SeleniumWindowMethods.Sleep(3); SeleniumSetMethods.Wait(ElementType.Id, "AppointmentDate"); SeleniumSetMethods.Click(ElementType.Id, "AppointmentDate"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Click(ElementType.XPath, "//button[@type='button']"); SeleniumSetMethods.Wait(ElementType.Id, "btnSubmit"); SeleniumSetMethods.Click(ElementType.Id, "btnSubmit"); SeleniumWindowMethods.Sleep(1); Global.ConsoleOut("Accepted Scheduled Appointment @: " + DateTime.Now); SeleniumWindowMethods.Sleep(2); Global.ConsoleOut("Manually run Amp Order sync now"); }
public static void OccupancyStatusTask() { SeleniumSetMethods.Wait(ElementType.Name, "osCurChkDt"); SeleniumSetMethods.EnterText(ElementType.Name, "osCurChkDt", "03/02/17"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "osVacant", "Yes"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "osPropType", "SFR"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "osList", "Yes"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "osUnCoop", "No"); SeleniumSetMethods.EnterText(ElementType.Name, "osBox", "1234"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "osLegal", "1"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "osLegal1", "Vacant Secure"); SeleniumSetMethods.EnterText(ElementType.Id, "txtosAgentNote", "It's good to go"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#tabStandards > tbody:nth-child(1) > tr:nth-child(6) > td:nth-child(1) > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > input:nth-child(3)", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\AUpload.pdf"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Click(ElementType.Name, "btnSaveSubmit"); }
public static void UploadAppraisal() { // Accept Schedule Appointment - Datetime Now SeleniumSetMethods.Wait(ElementType.PartialLinkText, "Tasks"); SeleniumSetMethods.Click(ElementType.PartialLinkText, "Tasks"); SeleniumSetMethods.Wait(ElementType.Id, "clearButton"); SeleniumSetMethods.Click(ElementType.Id, "clearButton"); SeleniumSetMethods.Click(ElementType.Id, "searchButton"); SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.Wait(ElementType.Id, "cbUploadAppraisal"); SeleniumSetMethods.Click(ElementType.Id, "cbUploadAppraisal"); int tries = 0; bool IsAppointmentPresent = false; while (IsAppointmentPresent == false) { try { SeleniumSetMethods.Click(ElementType.Id, "searchButton"); // refreshing results tries = tries + 1; Global.ConsoleOut("Attempting to Schedule Appointment: " + tries + " Attempt(s)"); SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.Click(ElementType.PartialLinkText, "Upload Appraisal"); Global.ConsoleOut("Appraisal Found"); IsAppointmentPresent = true; break; } catch (Exception) { } if (tries == 10) { Global.ConsoleOut("Appraisal Not Found"); break; // handle error and break/return } SeleniumWindowMethods.Sleep(25); SeleniumSetMethods.Click(ElementType.PartialLinkText, "Tasks"); SeleniumWindowMethods.Sleep(5); } SeleniumWindowMethods.Sleep(5); SeleniumSetMethods.EnterText(ElementType.Id, "Attachment_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\QA Automation\\Documents\\1025_01.pdf"); SeleniumSetMethods.EnterText(ElementType.Id, "PropertyValue", "500000"); SeleniumSetMethods.Wait(ElementType.Id, "ActualAppointmentDate"); SeleniumSetMethods.Click(ElementType.Id, "ActualAppointmentDate"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[2]"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Click(ElementType.Id, "btnSubmit"); }
static void Main(string[] args) { // Start your engines !!! ConsoleWindow.ConsoleAttributes(); Global.ReadySetGo(); Login.qaLossMitt("qaservicer", "P@ssw0rd1"); SeleniumSetMethods.Wait(ElementType.Id, "AddressSearchString"); SeleniumSetMethods.EnterText(ElementType.Id, "AddressSearchString", "123"); SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.EnterText(ElementType.Id, "AddressSearchString", Keys.Enter); Global.Cooldown(); // Test was completed successfully // Global.Done(); }
public static void CreateNewAppraisal(string ClientID, string ProductType, string ProductDetails, string StreetName, string City, string FullState, string ZipCode) { // Order Queue Page SeleniumSetMethods.Wait(ElementType.LinkText, "Clear"); SeleniumSetMethods.Click(ElementType.LinkText, "Clear"); SeleniumSetMethods.Wait(ElementType.Id, "btnSearchOrders"); SeleniumSetMethods.Click(ElementType.Id, "btnSearchOrders"); // Add New Order SeleniumSetMethods.Wait(ElementType.LinkText, "Add New Order"); SeleniumSetMethods.Click(ElementType.LinkText, "Add New Order"); SeleniumSetMethods.Wait(ElementType.Id, "ClientId"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ClientId", ClientID); SeleniumSetMethods.EnterText(ElementType.Id, "LoanNumb", Global.LoanNum); Global.ConsoleOut("Loan Number: " + Global.LoanNum); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ProductType", ProductType); SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ProductDetails", ProductDetails); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Purpose", "New Loan Purchase"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PropertyType", "Single Family"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "OccupancyStatus", "Unknown"); SeleniumSetMethods.EnterText(ElementType.Id, "Portfolio", "Automated"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "LoanType", "Conv"); Global.StreetAddress = (Global.StreetNum + " " + StreetName); Global.ConsoleOut("Street Address: " + Global.StreetAddress); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectAddress", Global.StreetAddress); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectCity", City); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SubjectState", FullState); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectPostalCode", ZipCode); SeleniumSetMethods.EnterText(ElementType.Id, "BorrowerName", "Hello Kitty"); SeleniumSetMethods.EnterText(ElementType.Id, "BorrowerPhone", "9493335432"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "TenderTypeCode", "Invoice"); SeleniumSetMethods.Click(ElementType.Id, "btnOrderSave"); SeleniumSetMethods.Wait(ElementType.CssName, "img.lookupPopupIcon"); // Get Order ID from Order Details page string OrderID = SeleniumGetMethods.GetTextContent(ElementType.CssSelector, "div.padding-5:nth-child(3) > b:nth-child(2)").TrimStart(); Global.OrderID = OrderID; Global.ConsoleOut("Order ID: " + OrderID); // Screen Capture SeleniumWindowMethods.Sleep(1); SeleniumWindowMethods.ScreenShot("Acme Appraisal"); }
public static void ManualProviderAssign(string sourceid) { // Provider Assign SeleniumSetMethods.Wait(ElementType.CssSelector, "img.lookupPopupIcon"); SeleniumSetMethods.Click(ElementType.CssSelector, "img.lookupPopupIcon"); SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.Wait(ElementType.Id, "Filters_Radius"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Filters_Radius", "50+"); SeleniumSetMethods.Click(ElementType.Id, "Filters_ProviderHasLocationZip"); SeleniumSetMethods.EnterText(ElementType.Id, "Filters_SourceId", sourceid); // Assign your provider SeleniumSetMethods.Click(ElementType.Id, "btnSearchProviderAssignment"); SeleniumWindowMethods.Sleep(5); SeleniumSetMethods.Wait(ElementType.CssSelector, "#ProviderAssignmentTGrid > table:nth-child(1) > tbody:nth-child(3) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#ProviderAssignmentTGrid > table:nth-child(1) > tbody:nth-child(3) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1)"); SeleniumWindowMethods.Sleep(5); SeleniumWindowMethods.Assertion(Alert.Accept); SeleniumWindowMethods.Sleep(3); }
public static void AddNewProperty(string PropSTName, string PropCity, string PropState, string PropZipCode, string Client) { // Add new property using variables SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.Wait(ElementType.PartialLinkText, "Add New Property"); SeleniumSetMethods.Click(ElementType.PartialLinkText, "Add New Property"); SeleniumSetMethods.Wait(ElementType.Id, "street_number"); SeleniumSetMethods.EnterText(ElementType.Id, "street_number", Global.StreetNum + " " + PropSTName); SeleniumSetMethods.EnterText(ElementType.Id, "locality", PropCity); SeleniumSetMethods.Click(ElementType.XPath, "//button[@type='button']"); SeleniumSetMethods.Wait(ElementType.PartialLinkText, PropState); SeleniumSetMethods.Click(ElementType.PartialLinkText, PropState); SeleniumSetMethods.EnterText(ElementType.Id, "postal_code", PropZipCode); SeleniumSetMethods.EnterText(ElementType.Id, "LoanNumber", Global.LoanNum); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[6]"); SeleniumSetMethods.Wait(ElementType.PartialLinkText, Client); SeleniumSetMethods.Click(ElementType.PartialLinkText, Client); SeleniumSetMethods.Click(ElementType.Id, "btnPropAdd"); }
public static void Sample() { // Sample Code to Execute String PropertyID = "507635"; Global.OrderID = PropertyID; Login.qaBuyer("qapaidbuyer03", "P@ssw0rd1"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertiesTabLink > span > b"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertiesTabLink > span > b"); SeleniumSetMethods.Wait(ElementType.Id, "location"); SeleniumSetMethods.EnterText(ElementType.Id, "location", "Atlanta, GA"); SeleniumSetMethods.Click(ElementType.Id, "propertiesSubmit"); SeleniumSetMethods.Wait(ElementType.Id, "additionalInfoLnk"); SeleniumSetMethods.Click(ElementType.Id, "additionalInfoLnk"); SeleniumSetMethods.Wait(ElementType.Id, "searchPropertyID"); SeleniumSetMethods.EnterText(ElementType.Id, "searchPropertyID", Global.OrderID); SeleniumSetMethods.Wait(ElementType.CssSelector, "div.searchbtn > #propertiesSubmit > span > b"); SeleniumSetMethods.Click(ElementType.CssSelector, "div.searchbtn > #propertiesSubmit > span > b"); // Click on Property Returned SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= '/Properties/Details/']"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= '/Properties/Details/']"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#tab_offers > a > span > b"); SeleniumSetMethods.Click(ElementType.CssSelector, "#tab_offers > a > span > b"); SeleniumSetMethods.Wait(ElementType.CssSelector, "div.expandable"); SeleniumSetMethods.Click(ElementType.CssSelector, "div.expandable"); // Click on First Offer SeleniumSetMethods.Wait(ElementType.CssSelector, "#poffer_tbl > tbody > tr > td > a"); SeleniumSetMethods.Click(ElementType.CssSelector, "#poffer_tbl > tbody > tr > td > a"); SeleniumSetMethods.Wait(ElementType.Id, "offerAction"); SeleniumSetMethods.EnterText(ElementType.Id, "offerAction", "Counter"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.EnterText(ElementType.Id, "offerAction", "Counter"); SeleniumSetMethods.Wait(ElementType.Id, "copyRecentOfferLink"); SeleniumSetMethods.Click(ElementType.Id, "copyRecentOfferLink"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Clear(ElementType.CssSelector, "td[id=\"Offer#2\"] input[id$=\"__LoanAmount\"]"); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.EnterText(ElementType.CssSelector, "td[id=\"Offer#2\"] input[id$=\"__LoanAmount\"]", "300000.00"); }
public static void OpenBPO() { // Open BPO Task Global.ConsoleOut("Opening BPO :" + Global.OrderID + " @: " + DateTime.Now); SeleniumSetMethods.Wait(ElementType.LinkText, "Tasks"); SeleniumSetMethods.Click(ElementType.LinkText, "Tasks"); SeleniumSetMethods.Wait(ElementType.Id, "clearButton"); SeleniumSetMethods.Click(ElementType.Id, "clearButton"); SeleniumSetMethods.Wait(ElementType.Id, "Address"); SeleniumSetMethods.EnterText(ElementType.Id, "Address", Global.StreetAddress); int tries = 0; bool IsOrderPresent = false; while (IsOrderPresent == false) { try { SeleniumSetMethods.Click(ElementType.Id, "searchButton1"); // refreshing results tries = tries + 1; Global.ConsoleOut("Attempting to find BPO: " + tries + " Attempt(s)"); SeleniumWindowMethods.Sleep(2); SeleniumSetMethods.Click(ElementType.LinkText, "BPO"); Global.ConsoleOut("BPO Found"); IsOrderPresent = true; break; } catch (Exception) { } if (tries == 15) { Global.ConsoleOut("BPO not found"); break; // handle error and break/return } SeleniumWindowMethods.Sleep(25); SeleniumSetMethods.Click(ElementType.LinkText, "Tasks"); SeleniumWindowMethods.Sleep(5); } }
public static void AddNewProperty(string StreetName) { // Properties - Add New Property SeleniumSetMethods.Wait(ElementType.LinkText, "Properties"); SeleniumSetMethods.Click(ElementType.LinkText, "Properties"); SeleniumSetMethods.Wait(ElementType.CssSelector, "span.ui-button-text"); SeleniumSetMethods.Click(ElementType.CssSelector, "span.ui-button-text"); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); // Add New Property iFrame SeleniumWindowMethods.iFrame("externalSite"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'AM_POP_CLIENTPA']"); Global.ConsoleOut("Open Popup - New Property"); // Client - Popup SeleniumWindowMethods.WindowType(WinType.Popup); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); SeleniumSetMethods.Wait(ElementType.Name, "csClientId"); SeleniumSetMethods.EnterText(ElementType.Name, "csClientId", "7224"); SeleniumSetMethods.Wait(ElementType.Name, "btnRedraw"); SeleniumSetMethods.Click(ElementType.Name, "btnRedraw"); SeleniumWindowMethods.WindowType(WinType.Popup); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); SeleniumSetMethods.Click(ElementType.CssSelector, "img"); Global.ConsoleOut("Popup closing"); // Switch back to main window - Asset Manager Popup SeleniumWindowMethods.WindowType(WinType.Main); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); SeleniumWindowMethods.iFrame("externalSite"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'AM_POP_AMGRPA']"); SeleniumWindowMethods.WindowType(WinType.Popup); SeleniumSetMethods.Wait(ElementType.Name, "msAmId"); SeleniumSetMethods.EnterText(ElementType.Name, "msAmId", "3287"); SeleniumSetMethods.Wait(ElementType.Name, "btnRedraw"); SeleniumSetMethods.Click(ElementType.Name, "btnRedraw"); SeleniumSetMethods.Click(ElementType.CssSelector, "img"); // Switch back to main window - File Manager Popup SeleniumWindowMethods.WindowType(WinType.Main); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); SeleniumWindowMethods.iFrame("externalSite"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'AM_POP_AMGRPA2']"); SeleniumWindowMethods.WindowType(WinType.Popup); SeleniumSetMethods.Wait(ElementType.Name, "msAmId"); SeleniumSetMethods.Clear(ElementType.Name, "msAmId"); SeleniumSetMethods.Wait(ElementType.Name, "btnRedraw"); SeleniumSetMethods.Click(ElementType.Name, "btnRedraw"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'Jon1']"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'Jon1']"); // Switch back to main window - Asset Manager Popup SeleniumWindowMethods.WindowType(WinType.Main); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); SeleniumWindowMethods.iFrame("externalSite"); Global.StreetAddress = (Global.StreetNum + " " + StreetName); Global.ConsoleOut("Street Address: " + Global.StreetAddress); SeleniumSetMethods.Wait(ElementType.Name, "paPropAddr"); SeleniumSetMethods.EnterText(ElementType.Name, "paPropAddr", Global.StreetAddress); SeleniumSetMethods.EnterText(ElementType.Name, "paPropCity", "Irvine"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "paPropState", "California"); SeleniumSetMethods.EnterText(ElementType.Name, "paPropZip", "92620"); // Loan Information SeleniumSetMethods.EnterText(ElementType.Name, "Loan_Number", Global.LoanNum); SeleniumSetMethods.EnterText(ElementType.Name, "Borrower_First", "FirstName"); SeleniumSetMethods.EnterText(ElementType.Name, "Borrower_Last", "LastName"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "paPropType", "SFR"); // Add Attorney - Popup SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'AM_POP_FCATTNYPA']"); Global.ConsoleOut("Open Popup - Attorney"); SeleniumWindowMethods.Sleep(2); SeleniumWindowMethods.WindowType(WinType.Popup); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'Just']"); // Switch back to main window SeleniumWindowMethods.WindowType(WinType.Main); Global.ConsoleOut("Window Title: " + PropertiesCollection.driver.Title); SeleniumWindowMethods.iFrame("externalSite"); SeleniumSetMethods.EnterText(ElementType.Name, "Fc_Saledt", Global.LastMonth); SeleniumSetMethods.EnterText(ElementType.Name, "Unpd_Bal", "250000"); SeleniumSetMethods.EnterText(ElementType.Name, "Fc_Apr_Value", "500000"); SeleniumSetMethods.EnterText(ElementType.Name, "Fc_Apr_Dte", Global.LastYear); SeleniumSetMethods.EnterText(ElementType.Name, "txtpaNote", "Do you want to build a snowman?"); SeleniumSetMethods.Click(ElementType.Name, "txtpaNote"); SeleniumSetMethods.Click(ElementType.Name, "btnAdd"); SeleniumWindowMethods.Sleep(3); // Get Property ID from Property Details page try { string PropertyID = SeleniumGetMethods.GetTextContent(ElementType.CssSelector, "#selectedProperty > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2)").TrimStart(); Global.OrderID = PropertyID; Global.ConsoleOut("Property ID: " + PropertyID);; } catch { SeleniumSetMethods.Wait(ElementType.Name, "btnAdd"); SeleniumSetMethods.Click(ElementType.Name, "btnAdd"); SeleniumWindowMethods.Sleep(2); string PropertyID = SeleniumGetMethods.GetTextContent(ElementType.CssSelector, "#selectedProperty > table:nth-child(2) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2)").TrimStart(); Global.OrderID = PropertyID; Global.ConsoleOut("Property ID: " + PropertyID);; } // Screen Capture SeleniumWindowMethods.Sleep(1); SeleniumWindowMethods.ScreenShot("REO New Property"); }
public static void AssetMGRTasks() { SeleniumSetMethods.Wait(ElementType.Id, "globalPropertySearch"); SeleniumSetMethods.EnterText(ElementType.Id, "globalPropertySearch", Global.OrderID); SeleniumWindowMethods.Sleep(1); SeleniumSetMethods.Wait(ElementType.Id, "qsAddress"); SeleniumSetMethods.Click(ElementType.Id, "qsAddress"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); SeleniumSetMethods.Click(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("SCRA Referral (Custom)"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.Wait(ElementType.XPath, "(//input[@name='btnUpdate'])[3]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='btnUpdate'])[3]"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("Sivad Custom task (Custom)"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.Wait(ElementType.Id, "Test1"); SeleniumSetMethods.EnterText(ElementType.Id, "Test1", "yellow"); SeleniumSetMethods.Click(ElementType.Name, "btnUpdate"); SeleniumSetMethods.Wait(ElementType.LinkText, "Agent Listing Contract"); SeleniumSetMethods.Click(ElementType.LinkText, "Agent Listing Contract"); SeleniumSetMethods.Wait(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("122314 Custom Task (Custom)"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.Wait(ElementType.Id, "073113ListingCheckboxListCustom_test"); SeleniumSetMethods.Click(ElementType.Id, "073113ListingCheckboxListCustom_test"); SeleniumSetMethods.Wait(ElementType.Id, "btnUpdateAsDone"); SeleniumSetMethods.Click(ElementType.Id, "btnUpdateAsDone"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("Sivad Custom task (Custom)"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.EnterText(ElementType.Id, "Test1", "Enter Comment"); SeleniumSetMethods.Click(ElementType.Id, "btnUpdateAsDone"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("Home Owners Assoc Information Request"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.Wait(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("Tax Research Request"); SeleniumSetMethods.Wait(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("Listing Acknowledgement"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.Wait(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("Referral Agreement"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.Wait(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("Winterization Requirements Request"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.Wait(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Wait(ElementType.CssSelector, "a[href *= 'AM_PROPTASKS']"); IfExists.Link_Back("Occupancy Status Request"); IfExists.Id_Refresh("globalPropertySearch"); SeleniumSetMethods.Wait(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='btnUpdate'])[2]"); }
public static void CompleteBPO() { SeleniumSetMethods.Click(ElementType.Id, "Subject_InspectionDate"); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[2]"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsPropertySecure_0"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_IsNewConstruction_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_IsCurrentDisaster_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_ZoningDescription"); SeleniumSetMethods.Click(ElementType.Id, "Subject_LocationType_1"); SeleniumSetMethods.Click(ElementType.Id, "Marketing_MarketingDays"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_ReoTrend_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_MarketTimingTrend_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_PrimaryOccupant_0"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_IsIndustrialWithinQtrMile_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_VacancyPercentage_2"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_IsNeighborhoodNewConstruction_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_IsDisasterEvidence_1"); SeleniumSetMethods.Click(ElementType.Id, "Marketing_SalesLow"); SeleniumSetMethods.Click(ElementType.Id, "Marketing_ListingsLow"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_NeighborhoodDescription"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsRedFlagDamaged_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsRedFlagConstruction_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsRedFlagEnvironmental_0"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsRedFlagZoning_0"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsRedFlagMarketActivity_0"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsRedFlagStigma_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsRedFlagOther_0"); SeleniumSetMethods.Click(ElementType.Id, "Marketing_MarketConditions_1"); SeleniumSetMethods.Click(ElementType.Id, "Marketing_MarketPriceStability_2"); SeleniumSetMethods.Click(ElementType.Id, "Marketing_MarketPriceStabilityPercent"); SeleniumSetMethods.Click(ElementType.Id, "Marketing_ComparableSupply_1"); SeleniumSetMethods.Click(ElementType.Id, "Marketing_OwnerPercentage"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_ListingStatusPast12Mo_1"); SeleniumSetMethods.Click(ElementType.Id, "SubjectMarketing_SubjectDom"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectListPast12MoOriginalListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectListPast12MoLastListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_IsSubjectSoldPast12Mo_0"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectPast12MoSalePrice"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectPast12MoSalePriceDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectSoldPast12MoOriginalListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectSoldPast12MoLastListPrice"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectSoldPast12MoLastListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "SubjectMarketing_SubjectPropertyUnits"); SeleniumSetMethods.Click(ElementType.Id, "SubjectMarketing_SubjectLastSalePrice"); SeleniumSetMethods.Click(ElementType.Id, "SubjectMarketing_SubjectLastSaleDate"); SeleniumSetMethods.Click(ElementType.Id, "SubjectMarketing_SubjectLastSaleDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "SubjectMarketing_SubjectOccupancyStatus_1"); SeleniumSetMethods.Click(ElementType.Id, "SubjectMarketing_OwnershipStatus_0"); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_0__PostalCode"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_0__OriginalListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_1__OriginalListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_2__OriginalListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_1__OriginalListPrice"); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_0__SaleDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_1__SaleDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_2__SaleDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_0__Dom"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_IsDistressedSale_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps[0]_IsDistressedSale_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps[1]_IsDistressedSale_0"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps[2]_IsDistressedSale_1"); SeleniumSetMethods.Click(ElementType.Id, "Subject_LotSize"); SeleniumSetMethods.Click(ElementType.Id, "Subject_Units"); SeleniumSetMethods.Click(ElementType.Id, "Subject_Rooms"); SeleniumSetMethods.Click(ElementType.Id, "Subject_GarageCount"); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_1__GarageCount"); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_2__GarageCount"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Subject_PoolSpa"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_0__HoaFee"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_0__Comparability"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_MarketYearBuilt"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_Marketing_SaleListRatioPast3Mo"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps_0__OriginalListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps_1__OriginalListDate"); SeleniumSetMethods.Click(ElementType.CssSelector, "span.ui-icon.ui-icon-circle-triangle-w"); SeleniumSetMethods.Click(ElementType.LinkText, "17"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps_2__OriginalListDate"); SeleniumSetMethods.Click(ElementType.LinkText, "15"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_0__OriginalListPrice"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_0__Dom"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps[0]_IsDistressedSale_1"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps[1]_IsDistressedSale_0"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps[2]_IsDistressedSale_1"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_0__LotSize"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_0__Units"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps_0__Age"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_0__Rooms"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_0__GrossLivingArea"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps_0__BsmtSqFt"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_0__GarageCount"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_1__GarageType"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_1__GarageCount"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_2__GarageType"); SeleniumSetMethods.Click(ElementType.Id, "ListComps_2__GarageCount"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps_0__PoolSpa"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_ListComps_0__HoaFee"); SeleniumSetMethods.Click(ElementType.Id, "QuickSaleListPrice"); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_AsIsDays"); SeleniumSetMethods.Click(ElementType.Id, "ProviderComments"); // Enter Text SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_OwnerName", "Owner"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_VendorOrderId", "123-66"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_ParcelNumber", "123-333-55"); SeleniumSetMethods.EnterText(ElementType.Id, "BpoBrokerDistance", "15"); SeleniumSetMethods.EnterText(ElementType.Id, "BpoBrokerYearsExperience", "15"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_ZoningDescription", "zone"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_ZoningDataSource", "Zone data"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_CurrentUse", "Current use: Residential"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_ProjectedUse", "Project use :Residential"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_PropertyComments", "subject comments: Residential"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_MedianRent", "2500"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_MarketingDays", "90"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_SalesLow", "350000"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_SalesHigh", "425000"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_TotalSales", "5"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_ListingsLow", "375000"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_ListingsHigh", "430000"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_TotalListings", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_NeighborhoodDescription", "Neighborhood Description: tests"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_MarketConditionsComment", "Marketconditions: Test"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_RedFlagComments", "RED flags: Comments"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_MarketPriceStabilityPercent", "10"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_MarketPriceStabilityMonths", "24"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_OwnerPercentage", "50"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_TenantPercentage", "40"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_ComparableListingsCount", "4"); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_ReoListingsCount", "0"); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_SubjectDom", "45"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SubjectMarketing_SubjectListPast12MoOriginalListPrice", "475000"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SubjectMarketing_SubjectListPast12MoLastListPrice", "470000"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SubjectMarketing_SubjectPast12MoSalePrice", "575000"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SubjectMarketing_SubjectSoldPast12MoOriginalListPrice", "600000"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SubjectMarketing_SubjectSoldPast12MoLastListPrice", "580000"); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_ListingBrokerName", "test broker"); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_ListingFirmName", "service corp"); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_ListingBrokerPhone", "800-963-9999"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SubjectMarketing_SubjectPropertyType", "Single Family"); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_SubjectPropertyUnits", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_SubjectLastSalePrice", "576000"); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_HoaFee", "250.33"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__StreetAddress", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__StreetAddress", "2"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__StreetAddress", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__City", "Irvine"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__City", "Irvine"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__City", "Irvine"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_0__State", "California"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_1__State", "California"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_2__State", "California"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__PostalCode", "92620"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__PostalCode", "92620"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__PostalCode", "92620"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__ProximityDistance", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__ProximityDistance", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__ProximityDistance", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__OriginalListPrice", "470000"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__OriginalListPrice", "450000"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__OriginalListPrice", "440000"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__SalePrice", "450000"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__SalePrice", "425000"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__SalePrice", "425000"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__ListPriceAtSale", "450000"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__ListPriceAtSale", "430000"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__ListPriceAtSale", "425000"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Subject_DataSource", "MLS"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_0__DataSource", "Appraisal"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_1__DataSource", "MLS"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_2__DataSource", "Appraisal"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Dom", "90"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Dom", "80"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Dom", "75"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_TotalDom", "45"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__TotalDom", "95"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__TotalDom", "80"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__TotalDom", "75"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_FundingSource", "sub fund"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__FundingSource", "s1 fund"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__FundingSource", "s2 fund"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__FundingSource", "s3 fund"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SubjectMarketing_SubjectConcessions", "sub salecon"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Concessions", "s1 concession"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Concessions", "s2 concession"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Concessions", "s3 concession"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_0__LocationType", "Suburban"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_1__LocationType", "Urban"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_2__LocationType", "Suburban"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "LotSizeUnitType", "Sq. Ft."); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_LotSize", "6000"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__LotSize", "4500"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__LotSize", "5750"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__LotSize", "8500"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_Site", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__Site", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__Site", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__Site", "1"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_0__PropertyType", "Single Family"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_1__PropertyType", "Single Family"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_2__PropertyType", "Single Family"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Units", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Units", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Units", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Units", "1"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_Subject_ConstructionType", "Stone"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_0__ConstructionType", "Wood"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_1__ConstructionType", "Other"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_2__ConstructionType", "Brick"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_Design", "sub design"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__Design", "s1 design"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__Design", "s2 design"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__Design", "s3 design"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_Age", "20"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__Age", "22"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__Age", "23"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__Age", "24"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_Subject_ViewQualityDescription", "Adverse"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_0__ViewQualityDescription", "Neutral"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_1__ViewQualityDescription", "Neutral"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_2__ViewQualityDescription", "Neutral"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_0__ViewComparison", "Good"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_1__ViewComparison", "Satisfactory"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_2__ViewComparison", "Poor"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Subject_Condition", "Excellent"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_0__Condition", "Good"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_1__Condition", "Average"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_2__Condition", "Fair"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Rooms", "8"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Rooms", "9"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Rooms", "9"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Rooms", "7"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Beds", "5"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Beds", "4"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Beds", "5"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Beds", "4"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Baths", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Baths", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Baths", "2"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Baths", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_PartialBaths", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__PartialBaths", "0"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__PartialBaths", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__PartialBaths", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_GrossLivingArea", "2500"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__GrossLivingArea", "2500"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__GrossLivingArea", "2500"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__GrossLivingArea", "2750"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Bsmt", "sub base"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Bsmt", "s1 basement"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Bsmt", "s2 basement"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Bsmt", "s3 basement"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_BsmtSqFt", "500"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_BsmtPercentage", "10"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__BsmtSqFt", "400"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__BsmtPercentage", "0"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__BsmtSqFt", "0"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__BsmtPercentage", "0"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__BsmtSqFt", "250"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__BsmtPercentage", "15"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Subject_GarageType", "Carport"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_GarageCount", "2"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_0__GarageType", "Carport"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__GarageCount", "2"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_1__GarageType", "Carport"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__GarageCount", "2"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "SaleComps_2__GarageType", "Carport"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__GarageCount", "2"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Subject_PoolSpa", "sub pool"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__PoolSpa", "s1 pool"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__PoolSpa", "s2 pool"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__PoolSpa", "s3 pool"); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Extras", "sub other"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Extras", "s1 other"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Extras", "s2 other"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Extras", "s3 other"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__HoaFee", "180"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__HoaFee", "550.85"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__HoaFee", "550"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_0__Comparability", "Good"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_1__Comparability", "Satisfactory"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_SaleComps_2__Comparability", "Poor"); SeleniumSetMethods.EnterText(ElementType.Id, "Repairs_0__Description", "repair"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_Repairs_0__RepairType", "Interior"); SeleniumSetMethods.EnterText(ElementType.Id, "Repairs_0__Amount", "100.23"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_MarketYearBuilt", "1999"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_ClosedSalesPast6Mo", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_MarketGrossLivingArea", "1800"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_AbsorptionRatePast6Mo", "20"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_MarketLotSize", "6500"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_PendingSalesCount", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_MarketBeds", "4"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_SupplyMonths", "2"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_MarketBaths", "2.5"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_MarketUnits", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_AvgListPricePast3Mo", "400000"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_AvgListPricePast6Mo", "375000.00"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_ComparableSalesSearchRadius", "15.3"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_AvgSalePricePast3Mo", "410000"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_AvgSalePricePast6Mo", "380000"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_Marketing_MarketPropertyType", "Single Family"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_Marketing_ComparableAge", "Last 6 Months"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_SaleListRatioPast3Mo", "25"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_Marketing_SaleListRatioPast6Mo", "16"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__StreetAddress", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__StreetAddress", "4"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__StreetAddress", "5"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__StreetAddress", "6"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__City", "Irvine"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__City", "Irvine"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__City", "irvine"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_0__State", "California"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_1__State", "California"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_2__State", "California"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__PostalCode", "92620"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__PostalCode", "92620"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__PostalCode", "92620"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__ProximityDistance", "0.4"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__ProximityDistance", "0.6"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__ProximityDistance", "0.8"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__OriginalListPrice", "400000"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__OriginalListPrice", "410000"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__OriginalListPrice", "420000"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__ListPrice", "400000"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__ListPrice", "409000"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__ListPrice", "412999"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_0__DataSource", "MLS"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_1__DataSource", "MLS"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_2__DataSource", "MLS"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Concessions", "l1 sale conce"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Concessions", "l2 salecon"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Concessions", "l3salecon"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Dom", "25"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Dom", "26"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Dom", "28"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__TotalDom", "33"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__TotalDom", "34"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__TotalDom", "35"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__FundingSource", "l1 fund"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__FundingSource", "l2fund"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__FundingSource", "l3 fund"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__LotSize", "6250"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__LotSize", "5500"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__LotSize", "5500"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__Site", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__Site", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__Site", "1"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_0__PropertyType", "Single Family"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_1__PropertyType", "Single Family"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_2__PropertyType", "Single Family"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Units", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Units", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Units", "1"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_0__ConstructionType", "Brick"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_1__ConstructionType", "Mix"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_2__ConstructionType", "Stone"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__Design", "li design"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__Design", "l2 design"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__Design", "l3 design"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__Age", "25"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__Age", "15"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__Age", "10"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_0__Condition", "Fair"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_1__Condition", "Good"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_2__Condition", "Poor"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_0__ViewQualityDescription", "Adverse"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_1__ViewQualityDescription", "Neutral"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_2__ViewQualityDescription", "Beneficial"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_0__ViewComparison", "Good"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_1__ViewComparison", "Good"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_2__ViewComparison", "Good"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Rooms", "7"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Rooms", "6"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Rooms", "7"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Beds", "4"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Beds", "6"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Beds", "5"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Baths", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Baths", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Baths", "3"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__PartialBaths", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__PartialBaths", "2"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__PartialBaths", "1"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__GrossLivingArea", "2750"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__GrossLivingArea", "2500"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__GrossLivingArea", "2500"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Bsmt", "l1basement"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Bsmt", "l2basement"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Bsmt", "l3 basement"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__BsmtSqFt", "0"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__BsmtPercentage", "0"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__BsmtSqFt", "500"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__BsmtPercentage", "100"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__BsmtSqFt", "150"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__BsmtPercentage", "20"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_0__GarageType", "Attached"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__GarageCount", "2"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_1__GarageType", "Detached"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__GarageCount", "1"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_2__GarageType", "None"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__GarageCount", "0"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__PoolSpa", "l1pool"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__PoolSpa", "l2pool"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__PoolSpa", "l3pool"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Extras", "l1 other"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Extras", "l2other"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Extras", "l3other"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_0__HoaFee", "180"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_1__HoaFee", "250"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_ListComps_2__HoaFee", "275"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_0__Comparability", "Good"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_1__Comparability", "Satisfactory"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_ListComps_2__Comparability", "Poor"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__Comment", "sale#1 comments"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__Comment", "sale#2 comments"); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__Comment", "sale#3 comments"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Comment", "List1 comments"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Comment", "list#2 comments"); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Comment", "list#3 comments"); SeleniumSetMethods.EnterText(ElementType.Id, "QuickSaleListPrice", "411111"); SeleniumSetMethods.EnterText(ElementType.Id, "QuickSaleValue", "422222"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_AsIsDays", "30"); SeleniumSetMethods.EnterText(ElementType.Id, "AsisListPrice", "433333"); SeleniumSetMethods.EnterText(ElementType.Id, "AsIsValue", "444444"); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_RepairedDays", "45"); SeleniumSetMethods.EnterText(ElementType.Id, "RepairedListPrice", "455555"); SeleniumSetMethods.EnterText(ElementType.Id, "RepairedValue", "466666"); SeleniumSetMethods.EnterText(ElementType.Id, "ProviderComments", "comments"); SeleniumSetMethods.EnterText(ElementType.Id, "BrokenRuleComments_SaleCompLotSizeComment", "Testing 123"); SeleniumSetMethods.EnterText(ElementType.Id, "BrokenRuleComments_SaleCompSalePriceComment", "Testing 234"); // Add images SeleniumSetMethods.Clear(ElementType.Id, "190_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "190_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B1.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "192_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "192_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B2.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "193_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "193_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B3.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "197_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "197_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C1.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "198_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "198_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C2.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "199_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "199_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C3.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "200_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "200_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C4.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "201_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "201_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C5.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "202_1_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "202_1_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\C6.jpg"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "16_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "16_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\AUpload.pdf"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Clear(ElementType.Id, "27_fileupload"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "27_fileupload", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\AUpload.pdf"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumWindowMethods.Sleep(30); SeleniumSetMethods.Wait(ElementType.Id, "btnBpoSave"); SeleniumSetMethods.Click(ElementType.Id, "btnBpoSave"); SeleniumSetMethods.AlertWait(); SeleniumWindowMethods.Assertion(Alert.Accept); SeleniumWindowMethods.Sleep(5); }
public static void CompleteRentalAnalysis() { Global.ConsoleOut("Begin input @ " + DateTime.Now); SeleniumSetMethods.Click(ElementType.CssSelector, "button.r-button.r-button-collapse-all"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.CssSelector, "button.r-button.r-button-expand-all"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Unified_InspectedDate"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[8]"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_SubjectPropertyUnits", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_Marketing_ReoTrend", "Increasing"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Rental_PredominantOccupancy_LookupId", "Owner"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Rental_MarketingTime_LookupId", "Under 3 Months"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_OwnerPercentage", "98"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Marketing_TenantPercentage", "2"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_SchoolDistrict", "Irvine"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Rental_TenancyTrend_LookupId", "Increasing"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_NumActiveListingsInNhood", "6"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_PriceRangeActiveListingsFrom"); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_PriceRangeActiveListingsFrom", "450000"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_PriceRangeActiveListingsFrom"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_PriceRangeActiveListingsTo", "600000"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_PriceRangeActiveListingsTo"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "PennyMac_Marketing_VacancyPercentage", "0-5%"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Rental_NeighborhoodBlight", "No"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Unified_NeighDetailsAddnlComments", "Really good schools 10/10"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__StreetAddress", "101 Rose Arch"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__StreetAddress", "102 Rose Arch"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__StreetAddress", "103 Rose Arch"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__City", "Irvine"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__City", "Irvine"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__City", "Irvine"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_0__State", "California"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_1__State", "California"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_2__State", "California"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__PostalCode", "92620"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__PostalCode", "92620"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__PostalCode", "92620"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectListPast12MoOriginalListDate"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_0__OriginalListDate"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_1__OriginalListDate"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_2__OriginalListDate"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SubjectMarketing_SubjectListPast12MoOriginalListPrice", "500000"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SubjectMarketing_SubjectListPast12MoOriginalListPrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_0__OriginalListPrice", "500001"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_0__OriginalListPrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_1__OriginalListPrice", "500002"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_1__OriginalListPrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "PennyMac_SaleComps_2__OriginalListPrice", "500003"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "PennyMac_SaleComps_2__OriginalListPrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_SubjectListPrice", "500004"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "SubjectMarketing_SubjectListPrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__ListPrice", "500005"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "ListComps_0__ListPrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__ListPrice", "500006"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "ListComps_1__ListPrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__ListPrice", "500007"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "ListComps_2__ListPrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_0__SaleDate"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_1__SaleDate"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_2__SaleDate"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_0__SalePrice", "500005"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_0__SalePrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_1__SalePrice", "500006"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_1__SalePrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "SaleComps_2__SalePrice", "500007"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "SaleComps_2__SalePrice"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "SubjectMarketing_SubjectDom", "30"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Dom", "35"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Dom", "40"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Dom", "50"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_DateLeaseBegins"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R1DateLeaseBegins"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R2DateLeaseBegins"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R3DateLeaseBegins"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.LinkText, "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_DateLeaseExpires"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[8]"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R1DateLeaseExpires"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[8]"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R2DateLeaseExpires"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[8]"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R3DateLeaseExpires"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[8]"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Subject_DataSource", "MLS"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_0__DataSource", "MLS"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_1__DataSource", "MLS"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_2__DataSource", "MLS"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_MonthlyRentalAmt", "2500"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_MonthlyRentalAmt"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_R1MonthlyRentalAmt", "2501"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R1MonthlyRentalAmt"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_R2MonthlyRentalAmt", "2502"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R2MonthlyRentalAmt"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_R3MonthlyRentalAmt", "2503"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_R3MonthlyRentalAmt"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Subject_LocationType"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Subject_LocationType", "Suburban"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.CssSelector, "#Subject_LocationType > option[value=\"2\"]"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_0__LocationType", "Suburban"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_1__LocationType", "Suburban"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_2__LocationType", "Suburban"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_PropertyView", "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_R1PropertyView", "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_R2PropertyView", "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_R3PropertyView", "1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "Subject_Condition", "Excellent"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_0__Condition", "Good"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_1__Condition", "Good"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.SelectDropDown(ElementType.Id, "ListComps_2__Condition", "Average"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Rooms", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Rooms", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Rooms", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Rooms", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Beds", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Beds", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Beds", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Beds", "3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Baths", "2"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Baths", "2"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Baths", "2"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Baths", "2"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_GrossLivingArea", "1200"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__GrossLivingArea", "1300"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__GrossLivingArea", "1400"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__GrossLivingArea", "1500"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_Bsmt", "100"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__Bsmt", "200"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__Bsmt", "300"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__Bsmt", "400"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Subject_FunctionalUtility", "Pool"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_0__FunctionalUtility", "Deck"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_1__FunctionalUtility", "Patio"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "ListComps_2__FunctionalUtility", "Door"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Unified_CheckListListing1Comments", "Lease Comment 1"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Unified_CheckListListing2Comments", "Lease Comment 2"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Unified_CheckListListing3Comments", "Lease Comment 3"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.EnterText(ElementType.Id, "Rental_EstimatedMarketRent", "2567"); SeleniumWindowMethods.ThrottlingSleep(); SeleniumSetMethods.Click(ElementType.Id, "Rental_EstimatedMarketRent"); SeleniumWindowMethods.ThrottlingSleep(); }
public static void Done() { Global.ConsoleOut("Test was completed successfully"); SeleniumWindowMethods.Sleep(2); SeleniumWindowMethods.WindowActions(ActType.Close); }
public static void Search() { // Navigate to web page SeleniumSetMethods.Navigate("https://qa-buyer.res.net"); SeleniumSetMethods.Wait(ElementType.Id, "propertiesTabLink"); SeleniumSetMethods.Click(ElementType.Id, "propertiesTabLink"); SeleniumSetMethods.Wait(ElementType.Id, "location"); SeleniumSetMethods.EnterText(ElementType.Id, "location", "34747"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertiesSubmit > img"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertiesSubmit > img"); SeleniumWindowMethods.ScreenShot("SoPurdy"); SeleniumSetMethods.Wait(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Click(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Wait(ElementType.Id, "logoBP"); SeleniumSetMethods.Click(ElementType.Id, "logoBP"); SeleniumSetMethods.Wait(ElementType.Id, "propertiesTabLink"); SeleniumSetMethods.Click(ElementType.Id, "propertiesTabLink"); SeleniumSetMethods.Wait(ElementType.Id, "location"); SeleniumSetMethods.EnterText(ElementType.Id, "location", "Springfield"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertiesSubmit > img"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertiesSubmit > img"); SeleniumSetMethods.Wait(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Click(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Wait(ElementType.Id, "logoBP"); SeleniumSetMethods.Click(ElementType.Id, "logoBP"); SeleniumSetMethods.Wait(ElementType.Id, "propertiesTabLink"); SeleniumSetMethods.Click(ElementType.Id, "propertiesTabLink"); SeleniumSetMethods.Wait(ElementType.Id, "location"); SeleniumSetMethods.EnterText(ElementType.Id, "location", "34747, Reunion, FL"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertiesSubmit > img"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertiesSubmit > img"); SeleniumSetMethods.Wait(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Click(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Wait(ElementType.Id, "logoBP"); SeleniumSetMethods.Click(ElementType.Id, "logoBP"); SeleniumSetMethods.Wait(ElementType.Id, "propertiesTabLink"); SeleniumSetMethods.Click(ElementType.Id, "propertiesTabLink"); SeleniumSetMethods.Wait(ElementType.Id, "location"); SeleniumSetMethods.EnterText(ElementType.Id, "location", "30004"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertiesSubmit > img"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertiesSubmit > img"); SeleniumSetMethods.Wait(ElementType.Id, "withinRadius"); SeleniumSetMethods.EnterText(ElementType.Id, "withinRadius", "50 Miles"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "minPrice"); SeleniumSetMethods.EnterText(ElementType.Id, "minPrice", "$100K"); SeleniumSetMethods.Wait(ElementType.Id, "maxPrice"); SeleniumSetMethods.EnterText(ElementType.Id, "maxPrice", "$250K"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "minBeds"); SeleniumSetMethods.EnterText(ElementType.Id, "minBeds", "3+"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "minBaths"); SeleniumSetMethods.EnterText(ElementType.Id, "minBaths", "3+"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Click(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Wait(ElementType.Id, "MLSNumber"); SeleniumSetMethods.EnterText(ElementType.Id, "MLSNumber", "LO7793433"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Click(ElementType.Id, "clearPropertiesSearch"); SeleniumSetMethods.Wait(ElementType.Id, "location"); SeleniumSetMethods.EnterText(ElementType.Id, "location", "90210"); SeleniumSetMethods.Wait(ElementType.Id, "withinRadius"); SeleniumSetMethods.EnterText(ElementType.Id, "withinRadius", "50 Miles"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeNone"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeNone"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk1"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Wait(ElementType.Id, "propertytypeChk1"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk1"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk2"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Wait(ElementType.Id, "propertytypeChk2"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk2"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk7"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Wait(ElementType.Id, "propertytypeChk7"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk7"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk9"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Wait(ElementType.Id, "propertytypeChk9"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk9"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk13"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Wait(ElementType.Id, "propertytypeChk13"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk13"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk5"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeLink"); SeleniumSetMethods.Wait(ElementType.Id, "propertytypeChk5"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk5"); SeleniumSetMethods.Click(ElementType.Id, "propertytypeChk10"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyTypeAll"); SeleniumSetMethods.Click(ElementType.Id, "propertyTypeAll"); SeleniumSetMethods.Wait(ElementType.Id, "propertyListingLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyListingLink"); SeleniumSetMethods.Wait(ElementType.Id, "propertyListingsNone"); SeleniumSetMethods.Click(ElementType.Id, "propertyListingsNone"); SeleniumSetMethods.Click(ElementType.Id, "listingTypeChk1"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyListingLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyListingLink"); SeleniumSetMethods.Wait(ElementType.Id, "listingTypeChk1"); SeleniumSetMethods.Click(ElementType.Id, "listingTypeChk1"); SeleniumSetMethods.Click(ElementType.Id, "listingTypeChk3"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyListingLink"); SeleniumSetMethods.Click(ElementType.Id, "propertyListingLink"); SeleniumSetMethods.Wait(ElementType.Id, "listingTypeChk3"); SeleniumSetMethods.Click(ElementType.Id, "listingTypeChk3"); SeleniumSetMethods.Click(ElementType.Id, "listingTypeChk2"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyListingsAll"); SeleniumSetMethods.Click(ElementType.Id, "propertyListingsAll"); SeleniumSetMethods.Wait(ElementType.Id, "propertyStatusLnk"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusLnk"); SeleniumSetMethods.Wait(ElementType.Id, "propertyStatusNone"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusNone"); SeleniumSetMethods.Wait(ElementType.Id, "SearchPrelisted"); SeleniumSetMethods.Click(ElementType.Id, "SearchPrelisted"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyStatusLnk"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusLnk"); SeleniumSetMethods.Wait(ElementType.Id, "SearchPrelisted"); SeleniumSetMethods.Click(ElementType.Id, "SearchPrelisted"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusChk2"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyStatusLnk"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusLnk"); SeleniumSetMethods.Wait(ElementType.Id, "propertyStatusChk2"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusChk2"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusChk3"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyStatusLnk"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusLnk"); SeleniumSetMethods.Wait(ElementType.Id, "propertyStatusChk3"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusChk3"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusChk6"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "propertyStatusAll"); SeleniumSetMethods.Click(ElementType.Id, "propertyStatusAll"); SeleniumSetMethods.Wait(ElementType.Id, "additionalInfoLnk"); SeleniumSetMethods.Click(ElementType.Id, "additionalInfoLnk"); SeleniumSetMethods.Wait(ElementType.Id, "minSqFt"); SeleniumSetMethods.EnterText(ElementType.Id, "minSqFt", "1000+"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "additionalInfoLnk"); SeleniumSetMethods.Click(ElementType.Id, "additionalInfoLnk"); SeleniumSetMethods.Wait(ElementType.Id, "minLotSize"); SeleniumSetMethods.EnterText(ElementType.Id, "minLotSize", "4000+"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Wait(ElementType.Id, "additionalInfoLnk"); SeleniumSetMethods.Click(ElementType.Id, "additionalInfoLnk"); SeleniumSetMethods.Wait(ElementType.Id, "yearBuilt"); SeleniumSetMethods.EnterText(ElementType.Id, "yearBuilt", "1960"); SeleniumSetMethods.Wait(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); SeleniumSetMethods.Click(ElementType.CssSelector, "#propertySearchOptionContainer > form:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(9) > div:nth-child(2) > a:nth-child(1)"); }