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


C# ClientsHelper.VerifyPageText方法代码示例

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


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

示例1: meetingForLead

        public void meetingForLead()
        {
            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 Activity Tab
             //        clientBugsHelper.ClickElement("ClickOnActivityTab");

            //Redirect to Meeting
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/meetings/create");

            //EnterMeetingName
            clientBugsHelper.TypeText("EnterMeetingName","Test Meeting");

            //MeetingStart
            clientBugsHelper.ClickElement("MeetingStart");
            clientBugsHelper.WaitForWorkAround(3000);

            //ClickDate18
            clientBugsHelper.ClickElement("ClickDate18");
            clientBugsHelper.WaitForWorkAround(3000);

            //EndDATE
            clientBugsHelper.ClickElement("EndDATE");
            clientBugsHelper.WaitForWorkAround(3000);

            //ClickDate28
            clientBugsHelper.ClickElement("ClickDate28");
            clientBugsHelper.WaitForWorkAround(3000);

            //ClickOnSaveButn
            clientBugsHelper.ClickElement("ClickOnSaveButn");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Related
            clientBugsHelper.SelectDropDownByText("//*[@id='MeetingParentType']", "Lead");

            //ClickOnAssignedToMeeting
            clientBugsHelper.ClickElement("ClickOnAssignedToMeeting");

            //SelectLedForMeeting
            clientBugsHelper.ClickElement("SelectLedForMeeting");
            clientBugsHelper.WaitForWorkAround(3000);

            //ClickOnSaveButn
            clientBugsHelper.ClickElement("ClickOnSaveButn");
            clientBugsHelper.WaitForWorkAround(3000);

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


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