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


C# ClientsHelper.WaitForWorkAround方法代码示例

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


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

示例1: createMeetingActivities

        public void createMeetingActivities()
        {
            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 clientBugsHelper = new ClientBugsHelper(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
            clientBugsHelper.ClickElement("ClickOnActivityTab");

            //Click to open client info
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/meetings/create");
            clientHelper.WaitForWorkAround(3000);

            //Enter Subject for the task
            clientHelper.TypeText("MeetingSubject", "TESTING MEETING SUBJECT");

            //Enter Subject for the task
            clientHelper.TypeText("MeetingLocation", "TESTING MEETING LOCATION");

            //Enter date in the date field
            clientHelper.TypeText("StartDateMeting", "2015-03-25");

            //Enter Date in the End Date  field
            clientHelper.TypeText("EndMeetingDate", "2015-03-26");

            //Select Related To
            clientBugsHelper.Select("SelectRelatedTo", "20");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Assigned To
            clientBugsHelper.ClickElement("ClickOnAssignedToMeeting");
            clientBugsHelper.WaitForWorkAround(4000);

            //Clcik on Client You Want To Invite
            clientBugsHelper.ClickElement("ClickOnClientMeeting");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Save button
            clientBugsHelper.ClickElement("SaveActivity");
            clientBugsHelper.WaitForWorkAround(3000);

            //verify page text
            clientBugsHelper.VerifyPageText("Meeting saved successfully.");
            clientBugsHelper.WaitForWorkAround(3000);
        }
开发者ID:Chandu14488,项目名称:Peg_bug,代码行数:63,代码来源:CreateMeetingActivities.cs

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