當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。