当前位置: 首页>>代码示例>>C#>>正文


C# ClientsHelper.ClickElement方法代码示例

本文整理汇总了C#中PegasusTests.PageHelper.ClientsHelper.ClickElement方法的典型用法代码示例。如果您正苦于以下问题:C# ClientsHelper.ClickElement方法的具体用法?C# ClientsHelper.ClickElement怎么用?C# ClientsHelper.ClickElement使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PegasusTests.PageHelper.ClientsHelper的用法示例。


在下文中一共展示了ClientsHelper.ClickElement方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: editClient

        public void editClient()
        {
            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");

            //Variables
            String pnumber = "989898" + RandomNumber(1111,9999);
            String gmail = "tester" + RandomNumber(99, 999) + "@gmail.com";
            String ymail = "testing" + RandomNumber(99, 999) + "@yopmail.com";
            String cname = "tttssss" + RandomNumber(1, 999);

            var name = "DBAName" + GetRandomNumber();

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var customerRelationshipHelper = new CustomerRelationshipHelper(GetWebDriver());
            var updateRateFees = new UpdateRateFeesHelper(GetWebDriver());
            var terminalsAndEquipment = new TerminalsAndEquipmentHelper(GetWebDriver());
            var ownersHelper = new OwnersHelper(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.");

            //Click on Clients in Topmenu
            clientHelper.ClickElement("ClickOnClientTab");

            //Verify user redirect at Client screen
            clientHelper.VerifyText("AddClients/Header", "Clients");

            //Click on Create client link
            clientHelper.ClickElement("AddClients/Create");

            //  clientHelper.VerifyPageText("tetrytrytryutryurtst");

            // Enter Company DBA Name
            clientHelper.TypeText("AddClients/CompanyDBAName", name);

            //Click on Save BUtton
            clientHelper.ClickElement("AddClients/ClickOnSaveBtn");
            clientHelper.WaitForWorkAround(8000);

            //Click on Clients in Topmenu
            clientHelper.ClickElement("ClickOnClientTab");

            //Search Client
            clientHelper.TypeText("SearchAddClient",name);
            clientHelper.WaitForWorkAround(10000);

            //Click on Edit
            clientHelper.ClickElement("EditClient");

            // Enter Enter Company Legal Name
            clientHelper.TypeText("AddClients/CompanyLegalName", "New Company");

            // Enter Enter Company Perisident
            clientHelper.TypeText("AddClients/CompanyPresident", "Tester");

            // Enter Company CFO
            clientHelper.TypeText("AddClients/CompanyCFO", "TEST CFO");

            // SELECT Ownership Type
            clientHelper.Select("AddClients/OwnershipType", "Sole Proprietor");

            // SELECT Tax Classification
            clientHelper.Select("AddClients/TaxClassification", "Disregarded Entity");

            // Enter SSN Federal TaxID
            clientHelper.TypeText("AddClients/SSNFederalTaxID", "abc1234");

            //Select Exempt payee
            clientHelper.Select("ExemptPayee", "Y");

            //State Incorporate
            clientHelper.Select("StateIncorporateEdit", "AL");

            //select Corporation Type
            clientHelper.Select("CorporateEdit", "C");

            //select TimeZone
            clientHelper.Select("EditTimEZone", "2");

            //################################## DESCRIPTION    #######################################

            // Click on Expand button
            clientHelper.ClickElement("clickOnExpandBtn");

            //Enter Description
            //  clientHelper.TypeText("CompnyDetailEnterDescription", "");
//.........这里部分代码省略.........
开发者ID:Chandu14488,项目名称:Peg_bug,代码行数:101,代码来源:EditClient.cs


注:本文中的PegasusTests.PageHelper.ClientsHelper.ClickElement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。