예제 #1
0
        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);
        }
예제 #2
0
 public static void qaREOFlowOrg1()
 {
     // REO Flow Org1
     Login.qaREO("Yeshh1", "Yeshh1");
     IfExists.Id_Refresh("globalPropertySearch");
     REO.AddNewProperty("Rincon");
     REO.AddAgent();
     Logout.REO();
     Login.qaAgent("*****@*****.**", "blue123");
     Agent.OpenREOTasks("Winterization"); REOTasks.Winterization("iben");
     Agent.OpenREOTasks("Occupancy Status Task"); REOTasks.OccupancyStatusTask();
     Agent.OpenREOTasks("Tax Research Task"); REOTasks.TaxResearchTask();
     Agent.OpenREOTasks("Referral Agreement"); REOTasks.ReferralFeeAgreement("iben");
     Agent.OpenREOTasks("HOA information task"); REOTasks.HOAInformation();
     Agent.OpenREOTasks("Listing Addendum"); REOTasks.ListingAddendum("iben");
     Logout.Agent();
     Login.qaREO("Yeshh1", "Yeshh1");
     IfExists.Id_Refresh("globalPropertySearch");
     REOTasks.AssetMGRTasks();
     Logout.REO();
     Global.ConsoleOut("Run Amp Order Sync");
     Login.qaAgent("*****@*****.**", "blue123");
     Agent.OpenREOTasks("BPO task"); REOBPO.BPOtask();
     Agent.OpenREOTasks("BPO Pictures"); REOBPO.BPOPictures();
     Logout.Agent();
 }
예제 #3
0
        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
                }
            }
        }
예제 #4
0
        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);
        }
예제 #5
0
파일: Global.cs 프로젝트: ibanPak/Selenium3
        public static void Cooldown()
        {
            Global.EndDT = DateTime.Now;
            var      seconds  = (Global.EndDT - Global.StartDT).TotalSeconds;
            TimeSpan timespan = TimeSpan.FromSeconds(seconds);
            int      hour     = timespan.Hours;
            int      min      = timespan.Minutes;
            int      sec      = timespan.Seconds;

            Global.ConsoleOut("Test took " + hour + " Hours, " + min + " minutes, " + sec + " seconds to run");
        }
예제 #6
0
파일: Global.cs 프로젝트: ibanPak/Selenium3
        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);
        }
예제 #7
0
파일: REO.cs 프로젝트: ibanPak/Selenium3
        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");
        }
예제 #8
0
파일: Vendor.cs 프로젝트: ibanPak/Selenium3
        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");
        }
예제 #9
0
파일: Vendor.cs 프로젝트: ibanPak/Selenium3
        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");
        }
예제 #10
0
        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");
        }
예제 #11
0
파일: Agent.cs 프로젝트: ibanPak/Selenium3
        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);
            }
        }
예제 #12
0
 public static void REOFlowOrg1()
 {
     // REO Flow Org1
     Login.uatREO("prodkath2", "qatest10");
     REO.AddNewProperty("Bay Tree");
     REO.AddAgent();
     Logout.REO();
     Login.uatAgent("*****@*****.**", "blue123");
     Agent.OpenREOTasks("Winterization"); REOTasks.Winterization("iben");
     Agent.OpenREOTasks("Occupancy Status Task"); REOTasks.OccupancyStatusTask();
     Agent.OpenREOTasks("Tax Research Task"); REOTasks.TaxResearchTask();
     Agent.OpenREOTasks("Referral Agreement"); REOTasks.ReferralFeeAgreement("iben");
     Agent.OpenREOTasks("HOA information task"); REOTasks.HOAInformation();
     Agent.OpenREOTasks("Listing Addendum"); REOTasks.ListingAddendum("iben");
     Logout.Agent();
     Login.uatREO("prodkath2", "qatest10");
     REOTasks.AssetMGRTasks();
     Logout.REO();
     Global.ConsoleOut("Run Amp Order Sync");
     Login.uatAgent("*****@*****.**", "blue123");
     Agent.OpenREOTasks("BPO task"); REOBPO.BPOtask();
     Agent.OpenREOTasks("BPO Pictures"); REOBPO.BPOPictures();
     Logout.Agent();
 }
예제 #13
0
파일: REO.cs 프로젝트: ibanPak/Selenium3
        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");
        }
예제 #14
0
 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();
 }
예제 #15
0
파일: Global.cs 프로젝트: ibanPak/Selenium3
 public static void Done()
 {
     Global.ConsoleOut("Test was completed successfully");
     SeleniumWindowMethods.Sleep(2);
     SeleniumWindowMethods.WindowActions(ActType.Close);
 }