Exemplo n.º 1
0
        public void merchantTabCorp()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnMerchnatTab");

            //verify
            clientHelperNewSkin.VerifyPageText("Merchants");
            clientHelperNewSkin.WaitForWorkAround(3000);
        }
        public void createProcessorNewSkin()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
               // clientHelperNewSkin.ClickElement("ClickOnMasterDataCorp");

               //ClickOnCreateClient
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/masterdata/processor_types");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Click on Create
               clientHelperNewSkin.ClickElement("ClickOnCreateBtn");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //Click save
               clientHelperNewSkin.ClickElement("ClickOnSavePro");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //EnterProcessorName
               var procnam = "TestPro" + RandomNumber(1,99);
               clientHelperNewSkin.TypeText("EnterProcessorName",procnam);

               //EnterProcessorName
               var Code = "1" + RandomNumber(1, 99);
               clientHelperNewSkin.TypeText("EnterCode", Code);

            //Click save
               clientHelperNewSkin.ClickElement("ClickOnSavePro");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Verify
               clientHelperNewSkin.VerifyPageText("Processor is successfully created!!");
        }
        public void clientVerifyCanadaCountry()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnClientTab");

               //ClickOnCreateClient
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //ClickOnContactTab
            clientHelperNewSkin.ClickElement("ClickOnContactTab");

            //Select Mailing Country
            clientHelperNewSkin.Select("SelectMailingCountry","Canada");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Select Location counrty
            clientHelperNewSkin.Select("SelectLocationCountry","Canada");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //SelectAddressCountry
            clientHelperNewSkin.Select("SelectAddressCountry","Canada");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Clkck on Owner tab
            clientHelperNewSkin.ClickElement("OwnerTab");
            //Select Owner Address country
            clientHelperNewSkin.Select("SelectOwnerAddressCountry","Canada");
            clientHelperNewSkin.WaitForWorkAround(3000);
        }
Exemplo n.º 4
0
        public void contactOwnerTab()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //ClickOnCreateClient
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");

            //Veify title
            VerifyTitle("Create a Client");

            //Click on 'Contact tab
            clientHelperNewSkin.ClickElement("ClickOnContactTab");

            //Verify title
            VerifyTitle("Create a Client");

            //Verify Owner information is not available
            clientHelperNewSkin.VerifyTextNotAvailable("Owner Information");

            //Click on 'Owner tab'
            clientHelperNewSkin.ClickElement("OwnerTab");

            //Verify title
            VerifyTitle("Create a Client");

            //Verify Contact information is not available
            clientHelperNewSkin.VerifyTextNotAvailable("Addresses");
        }
Exemplo n.º 5
0
        public void editMyProfile()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Redirect
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/myprofile");

            //Click On EditProfile
            clientHelperNewSkin.ClickElement("ClickOnEditProfile");

            //SelectCountryMP
               //     clientHelperNewSkin.Select("SelectCountryMP", "Canada");

            //SelectStateMP
               //         clientHelperNewSkin.Select("SelectStateMP", "NU");
            //    clientHelperNewSkin.WaitForWorkAround(4000);

            //Enter Zip Code
            clientHelperNewSkin.TypeText("EmplyEditNs","60601");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //ClickSaveMP
            clientHelperNewSkin.ClickElement("ClickSaveMP");
            clientHelperNewSkin.WaitForWorkAround(6000);

            //Verify Your profile has been successfully updated.
            clientHelperNewSkin.VerifyPageText("Your profile has been successfully updated.");
        }
        public void clintMissingPDFAggreement()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnClientTab");

               //ClickOnCreateClient
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients");

            //Verify Title
               VerifyTitle("Clients");

            //Open client
               clientHelperNewSkin.ClickElement("OpenClient");

            //Verify title
               VerifyTitle("- Details");

            //Click on PDF tab
               clientHelperNewSkin.ClickElement("PDFTab");

            //Verify title
               VerifyTitle("- Pdfs");

            //Verify Aggreement availabe
               clientHelperNewSkin.verifyElementVisible("Aggreement");
        }
        public void clientContactTabExpandOnClickLabel()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnClientTab");

               //ClickOnCreateClient
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //ClickOnContactTab
               clientHelperNewSkin.ClickElement("ClickOnCompanyDetailTab");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Click On Description
               clientHelperNewSkin.ClickElement("ClickOnDescription");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //Click On Description
               clientHelperNewSkin.ClickElement("ClickOnMoreCompanyDetial");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Click on Site Suvery
               clientHelperNewSkin.ClickElement("ClickOnSiteSurvey");
               clientHelperNewSkin.WaitForWorkAround(3000);
        }
        public void opportunititySubjectFiledValidateBlank()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnOpporTab");

            //Click TO View Opp
            clientHelperNewSkin.ClickElement("ClickToViewOpportunities");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //ClcikAddNote
            clientHelperNewSkin.ClickElement("ClcikAddNote");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Enter Note Subject
            clientHelperNewSkin.TypeText("EnterNoteName","    ");

            //ClickSaveNoteButton
            clientHelperNewSkin.ClickElement("ClickSaveNoteButton");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Verify //*[@id='NoteName-error']
            clientHelperNewSkin.VerifyText("VerifyTextNoteValidation", "This field is required.");
            clientHelperNewSkin.WaitForWorkAround(3000);
        }
        public void mouseOverTheButtonOpportunities()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            // Redirect To Leads
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/opportunities");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Mouse AllOpportunities
            clientHelperNewSkin.MouseHover("AllOpportunities");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Mouse AllOpportunities
            clientHelperNewSkin.MouseHover("MouserOverAllOpp");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Mouse AllOpportunities
            clientHelperNewSkin.MouseHover("MouseOverWithOpenMeeting");
            clientHelperNewSkin.WaitForWorkAround(3000);
        }
Exemplo n.º 10
0
        public void deleteProductAdmin()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Redirect To Admin
            //    clientHelperNewSkin.ClickElement("https://www.pegasus-test.com/selcorp/seloffice/admin");
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/admin");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Click Product Tab Admin
            clientHelperNewSkin.ClickElement("ClickProductTabAdmin");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/products");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //ClickOnCreate
            clientHelperNewSkin.ClickElement("ClickOnCreate");

            //Enter ProductName
            clientHelperNewSkin.TypeText("EnterNamePrd","Delete Product");

            //SelectCategoryProd
            //    clientHelperNewSkin.Select("SelectCategoryProd", "30");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Click on Add Custom field
              //         clientHelperNewSkin.ClickElement("AddCustomField");

            //Enter field name
             //           clientHelperNewSkin.TypeText("EnterFeildName", "FieldSelect");

            //SelectFieldType
              //          clientHelperNewSkin.Select("SelectFieldType", "select");

            //ClickSaveProdBtn
            clientHelperNewSkin.ClickElement("SaveProduct");
               // clientHelperNewSkin.ClickElement("ClickSaveProdBtn");
            clientHelperNewSkin.WaitForWorkAround(3000);
            clientHelperNewSkin.VerifyPageText("Product Created Successfully");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Redirect
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/products");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Search Product
            clientHelperNewSkin.TypeText("SearchProdcut", "Delete Product");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Click on delete product
            clientHelperNewSkin.ClickElement("DeleteProduct");
            clientHelperNewSkin.AcceptAlert();
            clientHelperNewSkin.WaitForWorkAround(3000);
            clientHelperNewSkin.VerifyPageText("Product Deleted Successfully");
            clientHelperNewSkin.WaitForWorkAround(3000);
        }
        public void clientDublicateMatchOverlay()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnClientTab");

               //ClickOnCreateClient
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Select Status
               clientHelperNewSkin.Select("SelectClientStatus", "New");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //SelectResponsibilty
               clientHelperNewSkin.SelectDropDownByText("//*[@id='ClientAssignedUserId']", "Aslam Khan");

               //Save Client
               clientHelperNewSkin.ClickElement("ClickSaveClient");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //EnterDBAName
               clientHelperNewSkin.TypeText("EnterDBAName","Eidt DBA Name");

               //ClickOnMerchantTab
               clientHelperNewSkin.ClickElement("ClickOnMerchantTab");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //VMCMerchantid
               clientHelperNewSkin.TypeText("VMCMerchantid", "1");

               //DinarId
               clientHelperNewSkin.TypeText("DinarId", "1");
               clientHelperNewSkin.WaitForWorkAround(2000);

               //AmexMerchantId
              // clientHelperNewSkin.TypeText("AmexMerchantId", "1");
               clientHelperNewSkin.WaitForWorkAround(2000);

               //JCBID
               clientHelperNewSkin.TypeText("JCBID", "1");

               //DiscoverMercahntId
               clientHelperNewSkin.TypeText("DiscoverMercahntId", "1");

               //EDTID
               clientHelperNewSkin.TypeText("EDTID", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("PNSNumber", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("ByPassNumber", "1");

               //NashVilleIDE
               clientHelperNewSkin.TypeText("NashVilleIDE", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("VitualNumberTer1", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("VTTerminal2", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("DataWireID", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("DebitID", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("CheckID", "1");

            //Save Client
               clientHelperNewSkin.ClickElement("ClickSaveClient");
               clientHelperNewSkin.WaitForWorkAround(6000);

               var loc = "//*[@id='messageduplicate']/div[2]/div/div[1]/h3";

               if (clientHelperNewSkin.IsElementPresent(loc))
               {
               //VerifyExisting
               clientHelperNewSkin.VerifyText("VerifyExisting", "Existing Clients");
               clientHelperNewSkin.WaitForWorkAround(6000);
               }

               else
               {
               //Verify
               clientHelperNewSkin.VerifyPageText("Client saved successfully.");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Create Another Clinet
               //Click on Agent in Topmenu
               clientHelperNewSkin.ClickElement("ClickOnClientTab");

               //ClickOnCreateClient
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");

               //Select Status
               clientHelperNewSkin.Select("SelectClientStatus", "New");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //SelectResponsibilty
               clientHelperNewSkin.SelectDropDownByText("//*[@id='ClientAssignedUserId']", "Aslam Khan");

               //Save Client
               clientHelperNewSkin.ClickElement("ClickSaveClient");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //EnterDBAName
               clientHelperNewSkin.TypeText("EnterDBAName", "Eidt DBA Name");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("VMCMerchantid", "1");

               //DinarId
               clientHelperNewSkin.TypeText("DinarId", "1");

               //AmexMerchantId
               //    clientHelperNewSkin.TypeText("AmexMerchantId", "1");

               //JCBID
               clientHelperNewSkin.TypeText("JCBID", "1");

               //DiscoverMercahntId
               clientHelperNewSkin.TypeText("DiscoverMercahntId", "1");

               //EDTID
               clientHelperNewSkin.TypeText("EDTID", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("PNSNumber", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("ByPassNumber", "1");

               //NashVilleIDE
               clientHelperNewSkin.TypeText("NashVilleIDE", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("VitualNumberTer1", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("VTTerminal2", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("DataWireID", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("DebitID", "1");

               //VMCMerchantid
               clientHelperNewSkin.TypeText("CheckID", "1");

               //Save Client
               clientHelperNewSkin.ClickElement("ClickSaveClient");
               clientHelperNewSkin.WaitForWorkAround(7000);

               //VerifyExisting
               clientHelperNewSkin.VerifyText("VerifyExisting", "Existing Clients");
               clientHelperNewSkin.WaitForWorkAround(6000);

                      }
        }
        public void editProductCategoryAdmin()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/admin");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickProductTabAdmin");

            //Redirect
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/products/categories");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Click Create Category Admin
            clientHelperNewSkin.ClickElement("ClickCreateCategoryAdmin");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //EnterCategoryName
            var name = "Test"+ RandomNumber(1,999);
            clientHelperNewSkin.TypeText("EnterCategoryName",name);

            //Save Category
            clientHelperNewSkin.ClickElement("SaveCategoryAdmin");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Verify text
            clientHelperNewSkin.WaitForText("Category Created Successfully",30);
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Seacrh And Edit
            clientHelperNewSkin.SearchAndEdit(name);
            clientHelperNewSkin.WaitForWorkAround(5000);

            //Verify title
            VerifyTitle("Edit Category");

            //Click
            clientHelperNewSkin.ClickElement("ClickEditSaveBtnCa");
            clientHelperNewSkin.WaitForWorkAround(4000);
        }
Exemplo n.º 13
0
        public void editClientNewSkin()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnClientTab");

               //ClickOnCreateClient
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Select Status
               clientHelperNewSkin.Select("SelectClientStatus", "New");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //SelectResponsibilty
               clientHelperNewSkin.SelectDropDownByText("//*[@id='ClientAssignedUserId']", "Aslam Khan");

               //Save Client
               clientHelperNewSkin.ClickElement("ClickSaveClient");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //EnterDBAName
               clientHelperNewSkin.TypeText("EnterDBAName","Eidt DBA Name");

            //Save Client
               clientHelperNewSkin.ClickElement("ClickSaveClient");
               //clientHelperNewSkin.WaitForWorkAround(5000);

            //Verify
               clientHelperNewSkin.WaitForText("Client saved successfully.",30);
               clientHelperNewSkin.WaitForWorkAround(3000);

            //###############   EDIT CLIENT

            //Redirect To
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients");

            //EnterCompanyDba
               clientHelperNewSkin.TypeText("EnterCompanyDba", "Eidt DBA Name");

            //ClickOnClient
               clientHelperNewSkin.ClickElement("ClickOnClient");

            //Click on company details
               clientHelperNewSkin.ClickElement("ClickOnCompanyDetailTab");

            //Enter Company CFO
               clientHelperNewSkin.TypeText("EnterCompanyCFO", "test CFO");

            //Click on Contact tab
            clientHelperNewSkin.ClickElement("ClickOnContactTab");

            //Enter Zip Code
            clientHelperNewSkin.TypeText("EnterZipCode","60601");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Save Client
            clientHelperNewSkin.ClickElement("ClickSaveClient");
            clientHelperNewSkin.WaitForWorkAround(3000);
        }
        public void getDeafultRatesAndFeesLead()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnLeadTab");

               //ClickOnCreateClient
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/leads/create");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //ClickOnContactTab
               clientHelperNewSkin.ClickElement("ClickOnRateFees");
               clientHelperNewSkin.WaitForWorkAround(3000);

            // SelectProcessorRF
               clientHelperNewSkin.Select("SelectProcessorRFL", "Processor 1186688466 Edited");
               clientHelperNewSkin.WaitForWorkAround(5000);

               // SeleectMerchantRF
               clientHelperNewSkin.Select("SeleectMerchantRFL", "test");
               clientHelperNewSkin.WaitForWorkAround(3000);

               // SelectProcessorRF
               clientHelperNewSkin.Select("LeadAcceptingMethod", "Manually Swiped");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //clickClickOnGetDefaultRates
               clientHelperNewSkin.ClickElement("ClickOnGetDefaultRatesL");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Accept ALERT
               clientHelperNewSkin.AcceptAlert();
               clientHelperNewSkin.WaitForWorkAround(4000);

            //Verify
               clientHelperNewSkin.IsElementPresent("VerifyPopulatedFiedlL");
               clientHelperNewSkin.WaitForWorkAround(4000);
        }
        public void profileViewOfClientLeadAndOpportunities()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnClientTab");

            //Search Enter CompanyDba
            clientHelperNewSkin.ClickElement("ClickToViewClient");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Verify
            clientHelperNewSkin.VerifyPageText("View");
            clientHelperNewSkin.WaitForWorkAround(3000);

            // Redirect To Leads
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/leads");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Search Enter CompanyDba
            clientHelperNewSkin.ClickElement("ViewLeadOfClnt");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Verify
            clientHelperNewSkin.VerifyPageText("View");
            clientHelperNewSkin.WaitForWorkAround(3000);

            // Redirect To Leads
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/opportunities");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Search Enter CompanyDba
            clientHelperNewSkin.ClickElement("ClickToViewOpportunities");
            clientHelperNewSkin.WaitForWorkAround(3000);

            //Verify
            clientHelperNewSkin.VerifyPageText("View");
            clientHelperNewSkin.WaitForWorkAround(3000);
        }
        public void clientResidualAdjustment()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnClientTab");

            //Enter Company DBA Name
            clientHelperNewSkin.TypeText("EnterCompanyDba", "Client Adjustment");
            clientHelperNewSkin.WaitForWorkAround(6000);

            var loc = "//table[@id='list1']/tbody/tr[2]/td[@aria-describedby='list1_company_dba_name']/a";

            if (clientHelperNewSkin.IsElementPresent(loc))
            {
                //Click on Clinet
                clientHelperNewSkin.ClickElement("ClickOnClient");
                clientHelperNewSkin.WaitForWorkAround(3000);

                //Cliclk on Residual Income
                clientHelperNewSkin.ClickElement("ClickOnResidualIncomeLink");
                clientHelperNewSkin.WaitForWorkAround(4000);

                //ClickOnCreateRA
                clientHelperNewSkin.ClickElement("ClickOnCreateRA");
                clientHelperNewSkin.WaitForWorkAround(2000);

                //EnterAdjustmentName
                clientHelperNewSkin.TypeText("EnterAdjustmentName", "Client Adjustment");

                //SelectAdjustmentFor
                clientHelperNewSkin.Select("SelectAdjustmentFor", "Agent");

                //SelectAdjustmentFor
                clientHelperNewSkin.Select("AdjustmentType", "Transaction");

                //SelectAdjustmentFor
                clientHelperNewSkin.Select("SelectReportingPeriod", "00");

                //SelectProcessor
                clientHelperNewSkin.Select("SelectProcessor", "Any");

                //SelectAdjustmentFor
                clientHelperNewSkin.Select("SelectRuleType", "1");

                //Enter Amount
                clientHelperNewSkin.TypeText("EnterAmount", "20");

                //AddRemove
                clientHelperNewSkin.Select("AddRemove", "Add");

                //ClickOnSaveBtnAdjustmnet
                clientHelperNewSkin.ClickElement("ClickOnSaveBtnAdjustmnet");
                clientHelperNewSkin.WaitForWorkAround(3000);

                //Verify
                clientHelperNewSkin.VerifyPageText("Master Adjustment Rules Created Successfully.");

            }
            else
            {

                //ClickOnCreateClient
                GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");
                //clientHelperNewSkin.ClickElement("ClickOnCreateClient");
                clientHelperNewSkin.WaitForWorkAround(3000);

                //Select Client Status
                clientHelperNewSkin.Select("SelectClientStatus", "Agreement");

                //Select Responsibility
                clientHelperNewSkin.Select("SelectResponsibilty", "637");

                //Click on Save
                clientHelperNewSkin.ClickElement("ClickSaveClient");

                //Enter DBA Name
                clientHelperNewSkin.TypeText("EnterDBAName", "Client Adjustment");

                //Click on Save
                clientHelperNewSkin.ClickElement("ClickSaveClient");

            /*    var dub = "//button[text()='Create Duplicate']";
                if (clientHelperNewSkin.IsElementPresent(loc))
                {
                    clientHelperNewSkin.ClickElement("CreateDublicateClient");
                }  */

                    //Cliclk on Residual Income
                    clientHelperNewSkin.ClickElement("ClickOnResidualIncomeLink");

                    //ClickOnCreateRA
                    clientHelperNewSkin.ClickElement("ClickOnCreateRA");
                    clientHelperNewSkin.WaitForWorkAround(2000);

                    //EnterAdjustmentName
                    clientHelperNewSkin.TypeText("EnterAdjustmentName", "Client Adjustment");

                    //SelectAdjustmentFor
                    clientHelperNewSkin.Select("SelectAdjustmentFor", "Agent");

                    //SelectAdjustmentFor
                    clientHelperNewSkin.Select("AdjustmentType", "Transaction");

                    //SelectAdjustmentFor
                    clientHelperNewSkin.Select("SelectReportingPeriod", "00");

                    //SelectProcessor
                    clientHelperNewSkin.Select("SelectProcessor", "Any");

                    //SelectAdjustmentFor
                    clientHelperNewSkin.Select("SelectRuleType", "1");

                    //Enter Amount
                    clientHelperNewSkin.TypeText("EnterAmount", "20");

                    //AddRemove
                    clientHelperNewSkin.Select("AddRemove", "Add");

                    //ClickOnSaveBtnAdjustmnet
                    clientHelperNewSkin.ClickElement("ClickOnSaveBtnAdjustmnet");
                    clientHelperNewSkin.WaitForWorkAround(3000);

                    //Verify
                    clientHelperNewSkin.VerifyPageText("Master Adjustment Rules Created Successfully.");

                }
        }
        public void convertLeadToClientFromPDFTab()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnLeadTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/leads/create");

            //Select Lead Status
            clientHelperNewSkin.Select("SelectLeadStatus", "New");

            //LeadResponsibility
            clientHelperNewSkin.Select("LeadResponsibility", "637");

            //Click on Save
            clientHelperNewSkin.ClickElement("ClickSaveClient");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Enter First Name
            clientHelperNewSkin.TypeText("EnterFirstNameLaed", "Test Lead");

            //EnterLastName
            clientHelperNewSkin.TypeText("EnterLastName", "Tester");

            var Company = "My Company" + RandomNumber(1,999);
            //Enter Company Nmae
            clientHelperNewSkin.TypeText("EnterCompanyName",Company);

            //Click on Save
            clientHelperNewSkin.ClickElement("ClickSaveClient");
            clientHelperNewSkin.WaitForWorkAround(4000);

            var LocDub = "//button[text()='Create Duplicate']";
            if (clientHelperNewSkin.IsElementPresent(LocDub))
            {
                clientHelperNewSkin.Click(LocDub);
            }

            //Clivc PDF
            clientHelperNewSkin.WaitForWorkAround(4000);
            clientHelperNewSkin.Click("//a[text()='PDFs']");

            //Click on Convert
            clientHelperNewSkin.ClickElement("ClickOnConvert");

            //Yes Move To Recycle Bin
            clientHelperNewSkin.ClickElement("ClickOnYes");

            //Click Convert Save Lead
            clientHelperNewSkin.Click("//div[@class='modal-footer']/button[@type='submit']");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Verify
            clientHelperNewSkin.VerifyPageText("Lead is converted and moved to recyclebin.");
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Redirect To Recycle bin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/opportunities/recyclebin");

            //Enter Lead To Search
            clientHelperNewSkin.TypeText("EnterLeadToSerach",Company);
            clientHelperNewSkin.WaitForWorkAround(4000);

            //Verify
            clientHelperNewSkin.VerifyText("VerifyTextComapny", Company);
            clientHelperNewSkin.WaitForWorkAround(4000);
        }
        public void deleteAllRevenueShareClient()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientHelperNewSkin = new ClientHelperNewSkin(GetWebDriver());

            //VARIABLE
            var name = "TestEmployee" + GetRandomNumber();

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            clientHelperNewSkin.ClickElement("ClickOnClientTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients");

               //EnterCompanyDba
               clientHelperNewSkin.TypeText("EnterCompanyDba", "Eidt DBA Name");
               clientHelperNewSkin.WaitForWorkAround(5000);

               var loc = "//table[@id='list1']/tbody/tr[2]";

               if (clientHelperNewSkin.IsElementPresent(loc)) {

               //ClickOnClient
               clientHelperNewSkin.ClickElement("ClickOnClient");

               //ClickOnResidualIncomeLink
               clientHelperNewSkin.ClickElement("ClickOnResidualIncomeLink");

               //DoubleClickOnSaleAgent
               clientHelperNewSkin.doubleClick("DoubleClickOnSaleAgent");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //Select Agent
               clientHelperNewSkin.SelectDropDownByText("//*[@id='manager']/form/select", "Aslam Khan");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //ClickSaveSaleAgent
               clientHelperNewSkin.ClickElement("ClickSaveSaleAgent");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //DoubleClickOnSetRevenue
               clientHelperNewSkin.doubleClick("VerifySelectsET");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //EnterRevenbueShareR1A
               clientHelperNewSkin.TypeText("EnterRevenbueShareR1A","20");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //ClickSaveSetRI
               clientHelperNewSkin.ClickElement("ClickSaveSetRI");
               clientHelperNewSkin.WaitForWorkAround(5000);

               //Delete AL
               clientHelperNewSkin.ClickElement("DeleteAllRevenueShare");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //Accept Alert
               clientHelperNewSkin.AcceptAlert();
               clientHelperNewSkin.WaitForWorkAround(4000);

               //Verify
               clientHelperNewSkin.VerifyText("VerifySelectsET", "Set Revenue Share");
               clientHelperNewSkin.WaitForWorkAround(2000);

               }

            else{

               //ClickOnCreateClient
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Select Status
               clientHelperNewSkin.Select("SelectClientStatus", "New");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //SelectResponsibilty
               clientHelperNewSkin.SelectDropDownByText("//*[@id='ClientAssignedUserId']", "Aslam Khan");

               //ClickOnCompanyDetailTab
               clientHelperNewSkin.ClickElement("ClickOnCompanyDetailTab");

               //EnterDBAName
               clientHelperNewSkin.TypeText("EnterDBAName","Eidt DBA Name");

            //Save Client
               clientHelperNewSkin.ClickElement("ClickSaveClient");
               clientHelperNewSkin.WaitForWorkAround(3000);

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients");
            clientHelperNewSkin.WaitForWorkAround(5000);

              //EnterCompanyDba
            clientHelperNewSkin.TypeText("EnterCompanyDba", "Eidt DBA Name");

               //ClickOnClient
               clientHelperNewSkin.ClickElement("ClickOnClient");

               //ClickOnResidualIncomeLink
               clientHelperNewSkin.ClickElement("ClickOnResidualIncomeLink");

               //DoubleClickOnSaleAgent
               clientHelperNewSkin.doubleClick("DoubleClickOnSaleAgent");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //Select Agent
               clientHelperNewSkin.SelectDropDownByText("//*[@id='manager']/form/select", "Aslam Khan");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //ClickSaveSaleAgent
               clientHelperNewSkin.ClickElement("ClickSaveSaleAgent");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //DoubleClickOnSetRevenue
               clientHelperNewSkin.ClickElement("DoubleClickOnSetRevenue");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //EnterRevenbueShareR1A
               clientHelperNewSkin.TypeText("EnterRevenbueShareR1A","20");
               clientHelperNewSkin.WaitForWorkAround(3000);

               //Accept Alert
               clientHelperNewSkin.AcceptAlert();
               clientHelperNewSkin.WaitForWorkAround(4000);

               //Verify
               clientHelperNewSkin.VerifyText("VerifySelectsET", "Set Revenue Share");
               clientHelperNewSkin.WaitForWorkAround(2000);

                }
        }