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 Winterization(string AgentName) { SeleniumSetMethods.Wait(ElementType.Name, "wsrWinterize"); SeleniumSetMethods.Click(ElementType.Name, "wsrWinterize"); SeleniumSetMethods.EnterText(ElementType.Name, "wsrSigned", AgentName); SeleniumSetMethods.Click(ElementType.Name, "wsrWinterize"); SeleniumSetMethods.Click(ElementType.Name, "btnSaveSubmit"); }
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 uatVendor(string username, string password) { // Navigate to web page SeleniumSetMethods.Navigate("https://uat-vendor.res.net/"); // Login Page SeleniumSetMethods.Wait(ElementType.Id, "Username"); SeleniumSetMethods.Clear(ElementType.Id, "Username"); SeleniumSetMethods.EnterText(ElementType.Id, "Username", username); SeleniumSetMethods.Clear(ElementType.Name, "UserPassword"); SeleniumSetMethods.EnterText(ElementType.Name, "UserPassword", password); SeleniumSetMethods.Click(ElementType.Id, "btnLogin"); }
public static void qaBuyer(string username, string password) { // Navigate to web page SeleniumSetMethods.Navigate("https://qa-buyer.res.net/login"); // Login Pages SeleniumSetMethods.Wait(ElementType.Id, "UsernameOrEmail"); SeleniumSetMethods.Clear(ElementType.Id, "UsernameOrEmail"); SeleniumSetMethods.EnterText(ElementType.Id, "UsernameOrEmail", username); SeleniumSetMethods.Clear(ElementType.Name, "PasswordLogin"); SeleniumSetMethods.EnterText(ElementType.Name, "PasswordLogin", password); SeleniumSetMethods.Click(ElementType.Id, "submitForm"); }
public static void uatREO(string username, string password) { // Navigate to URL SeleniumSetMethods.Navigate("https://uat-reo2.res.net/"); // Login Page SeleniumSetMethods.Wait(ElementType.Id, "amLoginId"); SeleniumSetMethods.Clear(ElementType.Id, "amLoginId"); SeleniumSetMethods.EnterText(ElementType.Id, "amLoginId", username); SeleniumSetMethods.Clear(ElementType.Name, "amIdentity"); SeleniumSetMethods.EnterText(ElementType.Name, "amIdentity", password); SeleniumSetMethods.Click(ElementType.Name, "btnLogin"); }
public static void uatValPortal(string username, string password) { // Navigate to URL SeleniumSetMethods.Navigate("http://uat-valuation.res.net/"); // Login Page SeleniumSetMethods.Wait(ElementType.Id, "usernameEmail"); SeleniumSetMethods.Clear(ElementType.Id, "usernameEmail"); SeleniumSetMethods.EnterText(ElementType.Id, "usernameEmail", username); SeleniumSetMethods.Clear(ElementType.Id, "password"); SeleniumSetMethods.EnterText(ElementType.Id, "password", password); SeleniumSetMethods.Click(ElementType.Id, "btnSubmitLogin"); }
public static void qaCed(string username, string password) { // Navigate to web page SeleniumSetMethods.Navigate("http://192.168.1.112:8080/"); // Login Page SeleniumSetMethods.Wait(ElementType.Id, "User"); SeleniumSetMethods.Clear(ElementType.Id, "User"); SeleniumSetMethods.EnterText(ElementType.Id, "User", username); SeleniumSetMethods.Clear(ElementType.Name, "Pass"); SeleniumSetMethods.EnterText(ElementType.Name, "Pass", password); SeleniumSetMethods.Click(ElementType.XPath, "//input[@value='Log in']"); }
public static void qaLossMitt(string username, string password) { // Navigate to web page SeleniumSetMethods.Navigate("https://qa-shortsale.res.net/Authentication/LogOn?ReturnUrl=%2fConnections"); // Login Page SeleniumSetMethods.Wait(ElementType.Id, "Username"); SeleniumSetMethods.Clear(ElementType.Id, "Username"); SeleniumSetMethods.EnterText(ElementType.Id, "Username", username); SeleniumSetMethods.Clear(ElementType.Name, "UserPassword"); SeleniumSetMethods.EnterText(ElementType.Name, "UserPassword", password); SeleniumSetMethods.Click(ElementType.Name, "btnLogin"); }
public static void qaAgent(string username, string password) { // Navigate to URL SeleniumSetMethods.Navigate("https://qa-agent.res.net/"); // Login Page SeleniumSetMethods.Wait(ElementType.Id, "username"); SeleniumSetMethods.Clear(ElementType.Id, "username"); SeleniumSetMethods.EnterText(ElementType.Id, "username", username); SeleniumSetMethods.Clear(ElementType.Id, "password"); SeleniumSetMethods.EnterText(ElementType.Id, "password", password); SeleniumSetMethods.Click(ElementType.Name, "btnLogin"); }
public static void uatPropertyCure(string username, string password) { // Navigate to web page SeleniumSetMethods.Navigate("https://uat-propertycure.res.net/"); // Login Page SeleniumSetMethods.Wait(ElementType.Id, "User"); SeleniumSetMethods.Clear(ElementType.Id, "User"); SeleniumSetMethods.EnterText(ElementType.Id, "User", username); SeleniumSetMethods.Clear(ElementType.Name, "Pass"); SeleniumSetMethods.EnterText(ElementType.Name, "Pass", password); SeleniumSetMethods.Click(ElementType.XPath, "//input[@value='Log in']"); }
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 PropertyInspection() { /* 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']"); * SeleniumSetMethods.Wait(ElementType.LinkText, "Property Inspection"); * SeleniumSetMethods.Click(ElementType.LinkText, "Property Inspection"); */ SeleniumSetMethods.Wait(ElementType.Name, "inspDate_visit"); SeleniumSetMethods.EnterText(ElementType.Name, "inspDate_visit", Global.LastMonth); SeleniumSetMethods.Click(ElementType.Name, "inspStatus_vacant"); SeleniumSetMethods.Click(ElementType.Name, "inspStatus_Personal_No"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#form-questions > table > tbody > tr > td:nth-child(1) > ul > li:nth-child(1) > div > ul > li:nth-child(1) > input[type=\"file\"]" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B1.jpg"); // SeleniumSetMethods.EnterText(ElementType.Name, "insp_23446296_5", "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B1.jpg"); SeleniumSetMethods.Click(ElementType.Name, "inspRe_keyed_No"); SeleniumSetMethods.Click(ElementType.Name, "inspLockBox_Yes"); SeleniumSetMethods.EnterText(ElementType.Name, "inspLockBox_Code", "12345"); SeleniumSetMethods.Click(ElementType.Name, "inspEvid_MOLD_No"); SeleniumSetMethods.Click(ElementType.Name, "inspSmoke_Yes"); SeleniumSetMethods.EnterText(ElementType.Name, "inspSmoke_How_many", "6"); SeleniumSetMethods.Click(ElementType.Name, "inspAir_cond_Yes"); SeleniumSetMethods.Click(ElementType.Name, "inspAir_cond_Opt_Yes"); SeleniumSetMethods.Click(ElementType.Name, "inspEvid_Hazardous_No"); SeleniumSetMethods.Click(ElementType.Name, "inspPool_No"); SeleniumSetMethods.Click(ElementType.Name, "inspCarpet_Yes"); SeleniumSetMethods.EnterText(ElementType.Name, "inspCarpet_Location", "Everywhere I look"); SeleniumSetMethods.Click(ElementType.Name, "inspCarpet_Recom_Clean_Yes"); SeleniumSetMethods.EnterText(ElementType.Name, "inspCarpet_Why", "Yes it's pretty dirty"); SeleniumSetMethods.Click(ElementType.Name, "inspSprinkler_Yes"); SeleniumSetMethods.Click(ElementType.Name, "inspSprinkler_Time_Pres_Yes"); SeleniumSetMethods.Click(ElementType.Name, "inspSprinkler_Oper_Yes"); SeleniumSetMethods.Click(ElementType.Name, "inspWater_Heater_Yes"); SeleniumSetMethods.Click(ElementType.Name, "inspWater_Heater_CA_Yes"); SeleniumSetMethods.Click(ElementType.Name, "inspRegulations_No"); SeleniumSetMethods.Click(ElementType.Name, "inspSafety_Hazards_No"); SeleniumSetMethods.Click(ElementType.Name, "inspEvid_Damage_No"); SeleniumSetMethods.EnterText(ElementType.CssSelector, "#form-questions > table > tbody > tr > td:nth-child(2) > ul > li:nth-child(7) > div > ul > li:nth-child(1) > input[type=\"file\"]" , "\\\\hqfs1\\Public\\IT\\QA\\Pictures\\B2.jpg"); SeleniumSetMethods.EnterText(ElementType.Name, "inspsignature_name", "iben"); SeleniumSetMethods.Click(ElementType.Name, "btnSaveSubmit"); SeleniumSetMethods.Click(ElementType.XPath, "xpath=(//input[@name='btnUpdate'])[2]"); }
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"); }
public static void TaxResearchTask() { SeleniumSetMethods.EnterText(ElementType.Name, "taxCounty", "Orange"); SeleniumSetMethods.EnterText(ElementType.Name, "taxParcel", "1234567"); SeleniumSetMethods.EnterText(ElementType.Name, "taxTaxContact", "995422"); SeleniumSetMethods.EnterText(ElementType.Name, "taxTaxContactPh", "9493331234"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "tax1Yr", "2017"); SeleniumSetMethods.Clear(ElementType.Name, "tax1AmtDue"); SeleniumSetMethods.Clear(ElementType.Name, "tax1Penalties"); SeleniumSetMethods.EnterText(ElementType.Name, "tax1AmtDue", "500.00"); SeleniumSetMethods.EnterText(ElementType.Name, "tax1Penalties", "7.00"); SeleniumSetMethods.EnterText(ElementType.Name, "taxTaxExpDt", "01/02/18"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='taxLiens'])[2]"); SeleniumSetMethods.Click(ElementType.XPath, "(//input[@name='taxTaxSale'])[2]"); SeleniumSetMethods.EnterText(ElementType.Name, "txtTaxCheck", "USRES"); SeleniumSetMethods.Click(ElementType.Name, "btnSaveSubmit"); }
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 HOAInformation() { SeleniumSetMethods.SelectDropDown(ElementType.Name, "hoaReq", "Yes"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaName", "Irvine Company"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaContact", "Big Bird"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaPhone", "949-333-5432"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaPayment", "350"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaPaymentDt", "01/01/17"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaPastDue", "0"); SeleniumSetMethods.SelectDropDown(ElementType.Name, "hoaFreq", "Monthly"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaHoaAddr", "20 Pacifica"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaHoaCity", "Irvine"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaHoaState", "CA"); SeleniumSetMethods.EnterText(ElementType.Name, "hoaHoaZip", "92618"); SeleniumSetMethods.Click(ElementType.Name, "btnSaveSubmit"); }
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 AddNewUser(string FirstName, string LastName, string Username, string Email, string Password) { // Add new User using variables SeleniumSetMethods.Wait(ElementType.CssSelector, "span.username"); SeleniumSetMethods.Click(ElementType.CssSelector, "span.username"); SeleniumSetMethods.Click(ElementType.Id, "ui-id-2"); SeleniumSetMethods.Click(ElementType.XPath, "//div[@id='dtUserSearch_wrapper']/div/div[3]/div/a[3]/span"); SeleniumSetMethods.Wait(ElementType.Id, "FirstName"); SeleniumSetMethods.EnterText(ElementType.Id, "FirstName", "Fred"); SeleniumSetMethods.EnterText(ElementType.Id, "LastName", "Flinstone"); SeleniumSetMethods.EnterText(ElementType.Id, "UserName", "Bedrock"); SeleniumSetMethods.EnterText(ElementType.Id, "EmailAddress", "*****@*****.**"); SeleniumSetMethods.EnterText(ElementType.Id, "Password", "passwrod1"); SeleniumSetMethods.Click(ElementType.Id, "Show_Password"); SeleniumSetMethods.EnterText(ElementType.Id, "PasswordConfirmation", "password1"); SeleniumSetMethods.SelectDropDown(ElementType.Id, "IsActive", "Yes"); SeleniumSetMethods.Click(ElementType.Id, "UserRoles"); SeleniumSetMethods.Click(ElementType.CssSelector, "div.multiSelectOptions:nth-child(2) > label:nth-child(1)"); SeleniumSetMethods.Click(ElementType.XPath, "(//button[@type='button'])[5]"); }
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 BPOtask() { SeleniumSetMethods.Wait(ElementType.Name, "abNdList"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdList", "3"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdLow", "500000"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdHigh", "600000"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdHouses", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdClose", "25"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdMktTime", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdSale", "30"); SeleniumSetMethods.Click(ElementType.Name, "abNdPoo"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdConstr", "All new construction"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdAssess", "negative"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdNeg", "the price"); SeleniumSetMethods.Click(ElementType.Name, "abNdAppr"); SeleniumSetMethods.EnterText(ElementType.Name, "abNdMonthly", "10"); SeleniumSetMethods.EnterText(ElementType.Name, "abStyle", "Nice"); SeleniumSetMethods.EnterText(ElementType.Name, "abSqFt", "1700"); SeleniumSetMethods.EnterText(ElementType.Name, "abRooms", "3000"); SeleniumSetMethods.EnterText(ElementType.Name, "abBed", "3"); SeleniumSetMethods.EnterText(ElementType.Name, "abBath", "3"); SeleniumSetMethods.EnterText(ElementType.Name, "abRent", "2500"); SeleniumSetMethods.EnterText(ElementType.Name, "abBsmt", "0"); SeleniumSetMethods.EnterText(ElementType.Name, "abGar", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abLot", "120"); SeleniumSetMethods.EnterText(ElementType.Name, "abAge", "10"); SeleniumSetMethods.EnterText(ElementType.Name, "abCond", "Great"); SeleniumSetMethods.EnterText(ElementType.Name, "abPrevDom", "20"); SeleniumSetMethods.EnterText(ElementType.Name, "abPrevLP", "350000"); SeleniumSetMethods.EnterText(ElementType.Name, "abCurrLP", "550000"); SeleniumSetMethods.EnterText(ElementType.Id, "txtabMktComments", "this unit is priced to sell"); SeleniumSetMethods.Click(ElementType.Name, "cbRI_roof"); SeleniumSetMethods.EnterText(ElementType.Name, "abRI_Haz", "none"); SeleniumSetMethods.EnterText(ElementType.Name, "abRI_Pers", "a Ferrari"); SeleniumSetMethods.EnterText(ElementType.Name, "abAddrS1", "Comp Sale 1"); SeleniumSetMethods.EnterText(ElementType.Name, "abSaleDtS1", "2/17/2017"); SeleniumSetMethods.EnterText(ElementType.Name, "abSqFtS1", "2000"); SeleniumSetMethods.EnterText(ElementType.Name, "abTotalS1", "500"); SeleniumSetMethods.EnterText(ElementType.Name, "abBedS1", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abBathS1", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abProxS1", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abBsmtS1", "0"); SeleniumSetMethods.EnterText(ElementType.Name, "abGarS1", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abLotS1", "5000"); SeleniumSetMethods.EnterText(ElementType.Name, "abAgeS1", "10"); SeleniumSetMethods.EnterText(ElementType.Name, "abDomS1", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abLpS1", "450000"); SeleniumSetMethods.EnterText(ElementType.Name, "abSpS1", "475000"); SeleniumSetMethods.EnterText(ElementType.Name, "abOwnerS1", "Bank"); SeleniumSetMethods.EnterText(ElementType.Name, "abAddrS2", "Comp Sale 2"); SeleniumSetMethods.EnterText(ElementType.Name, "abSaleDtS2", "2/15/2017"); SeleniumSetMethods.EnterText(ElementType.Name, "abSqFtS2", "2100"); SeleniumSetMethods.EnterText(ElementType.Name, "abTotalS2", "300"); SeleniumSetMethods.EnterText(ElementType.Name, "abBedS2", "3"); SeleniumSetMethods.EnterText(ElementType.Name, "abBathS2", "3"); SeleniumSetMethods.EnterText(ElementType.Name, "abProxS2", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abBsmtS2", "0"); SeleniumSetMethods.EnterText(ElementType.Name, "abGarS2", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abLotS2", "4750"); SeleniumSetMethods.EnterText(ElementType.Name, "abAgeS2", "10"); SeleniumSetMethods.EnterText(ElementType.Name, "abDomS2", "20"); SeleniumSetMethods.EnterText(ElementType.Name, "abLpS2", "400000"); SeleniumSetMethods.EnterText(ElementType.Name, "abSaleDtS3", "1/15/2017"); SeleniumSetMethods.EnterText(ElementType.Name, "abSqFtS3", "1950"); SeleniumSetMethods.EnterText(ElementType.Name, "abTotalS3", "200"); SeleniumSetMethods.EnterText(ElementType.Name, "abBedS3", "3"); SeleniumSetMethods.EnterText(ElementType.Name, "abBathS3", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abProxS3", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abBsmtS3", "0"); SeleniumSetMethods.EnterText(ElementType.Name, "abGarS3", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abLotS3", "4500"); SeleniumSetMethods.EnterText(ElementType.Name, "abAgeS3", "11"); SeleniumSetMethods.EnterText(ElementType.Name, "abDomS3", "30"); SeleniumSetMethods.EnterText(ElementType.Name, "abLpS3", "400000"); SeleniumSetMethods.EnterText(ElementType.Name, "abSpS3", "375000"); SeleniumSetMethods.EnterText(ElementType.Name, "abOwnerS3", "BofA"); SeleniumSetMethods.EnterText(ElementType.Name, "abAddrS3", "Comp Sale 3"); SeleniumSetMethods.EnterText(ElementType.Name, "abLpL1", "400000"); SeleniumSetMethods.EnterText(ElementType.Name, "abOwnerL1", "Wells"); SeleniumSetMethods.EnterText(ElementType.Name, "abCondS1", "Good"); SeleniumSetMethods.EnterText(ElementType.Name, "abFinS1", "None"); SeleniumSetMethods.EnterText(ElementType.Name, "abCommS1", "Seller got a great deal"); SeleniumSetMethods.EnterText(ElementType.Name, "abCondS2", "Good"); SeleniumSetMethods.EnterText(ElementType.Name, "abFinS2", "30 year"); SeleniumSetMethods.EnterText(ElementType.Name, "abCommS2", "No Beuno"); SeleniumSetMethods.EnterText(ElementType.Name, "abCondS3", "Good"); SeleniumSetMethods.EnterText(ElementType.Name, "abFinS3", "Standard"); SeleniumSetMethods.EnterText(ElementType.Name, "abCommS3", "Meh"); SeleniumSetMethods.Click(ElementType.Name, "cbInspS3"); SeleniumSetMethods.EnterText(ElementType.Name, "abCommS", "This and that"); SeleniumSetMethods.EnterText(ElementType.Name, "abAddrL1", "Comp List 1"); SeleniumSetMethods.EnterText(ElementType.Name, "abStyleL1", "Ranch"); SeleniumSetMethods.EnterText(ElementType.Name, "abSpS2", "425000"); SeleniumSetMethods.EnterText(ElementType.Name, "abOwnerS2", "Owner"); SeleniumSetMethods.EnterText(ElementType.Name, "abSqFtL1", "1200"); SeleniumSetMethods.EnterText(ElementType.Name, "abTotalL1", "250"); SeleniumSetMethods.EnterText(ElementType.Name, "abBedL1", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abBathL1", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abProxL1", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abBsmtL1", "0"); SeleniumSetMethods.EnterText(ElementType.Name, "abGarL1", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abLotL1", "2700"); SeleniumSetMethods.EnterText(ElementType.Name, "abAgeL1", "6"); SeleniumSetMethods.EnterText(ElementType.Name, "abDomL1", "15"); SeleniumSetMethods.EnterText(ElementType.Name, "abOLpL1", "375000"); SeleniumSetMethods.EnterText(ElementType.Name, "abAddrL2", "Comp List 2"); SeleniumSetMethods.EnterText(ElementType.Name, "abStyleL2", "Shaker"); SeleniumSetMethods.EnterText(ElementType.Name, "abSqFtL2", "1300"); SeleniumSetMethods.EnterText(ElementType.Name, "abTotalL2", "225"); SeleniumSetMethods.EnterText(ElementType.Name, "abBedL2", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abBathL2", "2"); SeleniumSetMethods.EnterText(ElementType.Name, "abProxL2", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abBsmtL2", "0"); SeleniumSetMethods.EnterText(ElementType.Name, "abGarL2", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abLotL2", "3100"); SeleniumSetMethods.EnterText(ElementType.Name, "abAgeL2", "5"); SeleniumSetMethods.EnterText(ElementType.Name, "abDomL2", "22"); SeleniumSetMethods.EnterText(ElementType.Name, "abOLpL2", "400000"); SeleniumSetMethods.EnterText(ElementType.Name, "abLpL2", "415000"); SeleniumSetMethods.EnterText(ElementType.Name, "abOwnerL2", "Wells"); SeleniumSetMethods.EnterText(ElementType.Name, "abAddrL3", "Comp List 3"); SeleniumSetMethods.EnterText(ElementType.Name, "abStyleL3", "Custom"); SeleniumSetMethods.EnterText(ElementType.Name, "abSqFtL3", "1700"); SeleniumSetMethods.EnterText(ElementType.Name, "abTotalL3", "200"); SeleniumSetMethods.EnterText(ElementType.Name, "abBedL3", "3"); SeleniumSetMethods.EnterText(ElementType.Name, "abBathL3", "3"); SeleniumSetMethods.EnterText(ElementType.Name, "abProxL3", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abBsmtL3", "0"); SeleniumSetMethods.EnterText(ElementType.Name, "abGarL3", "1"); SeleniumSetMethods.EnterText(ElementType.Name, "abLotL3", "2600"); SeleniumSetMethods.EnterText(ElementType.Name, "abAgeL3", "4"); SeleniumSetMethods.EnterText(ElementType.Name, "abDomL3", "12"); SeleniumSetMethods.EnterText(ElementType.Name, "abOLpL3", "450000"); SeleniumSetMethods.EnterText(ElementType.Name, "abLpL3", "450000"); SeleniumSetMethods.EnterText(ElementType.Name, "abOwnerL3", "BofA"); SeleniumSetMethods.EnterText(ElementType.Name, "abCondL1", "Good"); SeleniumSetMethods.EnterText(ElementType.Name, "abFinL1", "Conv"); SeleniumSetMethods.EnterText(ElementType.Name, "abCommL1", "good example"); SeleniumSetMethods.EnterText(ElementType.Name, "abCondL2", "Good"); SeleniumSetMethods.EnterText(ElementType.Name, "abFinL2", "Conv"); SeleniumSetMethods.EnterText(ElementType.Name, "abCommL2", "Keep an eye on this one"); SeleniumSetMethods.EnterText(ElementType.Name, "abCondL3", "Great"); SeleniumSetMethods.EnterText(ElementType.Name, "abFinL3", "Cash"); SeleniumSetMethods.EnterText(ElementType.Name, "abCommL3", "Boom"); SeleniumSetMethods.Click(ElementType.Name, "abMostCompL"); SeleniumSetMethods.Click(ElementType.Name, "cbInspL3"); SeleniumSetMethods.EnterText(ElementType.Name, "abCommL", "Listing #3 is AMAZING"); SeleniumSetMethods.EnterText(ElementType.Name, "abObo", "None"); SeleniumSetMethods.EnterText(ElementType.Name, "abInflu", "it's the I, you need to know"); SeleniumSetMethods.EnterText(ElementType.Name, "abResale", "nope.com"); SeleniumSetMethods.EnterText(ElementType.Name, "abFinan", "n/a"); SeleniumSetMethods.Click(ElementType.Name, "cbInvest"); SeleniumSetMethods.EnterText(ElementType.Name, "abFinancier", "BofA"); SeleniumSetMethods.EnterText(ElementType.Name, "abMktStrategy", "Price it to sell"); SeleniumSetMethods.Click(ElementType.Name, "abViewed"); SeleniumSetMethods.Click(ElementType.Id, "btnSaveWork"); SeleniumSetMethods.Click(ElementType.CssSelector, "a > img"); SeleniumSetMethods.EnterText(ElementType.Name, "abmv90asis", "400000"); SeleniumSetMethods.EnterText(ElementType.Name, "abmv90rep", "500000"); SeleniumSetMethods.EnterText(ElementType.Name, "txtmvcomments", "A remodel would work wonders"); SeleniumSetMethods.EnterText(ElementType.Name, "abslp90asis", "415000"); SeleniumSetMethods.EnterText(ElementType.Name, "abslp90rep", "525000"); SeleniumSetMethods.EnterText(ElementType.Name, "abEstLandValue", "315000"); SeleniumSetMethods.EnterText(ElementType.Name, "abHoName", "Irvine"); SeleniumSetMethods.EnterText(ElementType.Name, "abHoAcsz", "101 Irvine, Irvine, CA, 92614"); SeleniumSetMethods.EnterText(ElementType.Name, "abHoPhone", "949-333-1234"); SeleniumSetMethods.EnterText(ElementType.Name, "abHoDues", "350.00"); SeleniumSetMethods.EnterText(ElementType.Name, "abHoWhen", "First of the month"); SeleniumSetMethods.EnterText(ElementType.Name, "abHoLast", "2/12/2017"); SeleniumSetMethods.EnterText(ElementType.Name, "abHoDelinq", "None"); SeleniumSetMethods.EnterText(ElementType.Name, "abHoMaint", "none."); SeleniumSetMethods.EnterText(ElementType.Name, "abRdesc1", "Paint"); SeleniumSetMethods.EnterText(ElementType.Name, "abRcost1", "3000.00"); SeleniumSetMethods.Click(ElementType.Id, "btnSaveWorkPg2"); SeleniumSetMethods.Wait(ElementType.Id, "btnSaveSubmit"); SeleniumSetMethods.Click(ElementType.Id, "btnSaveSubmit"); }
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 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(); }