本文整理匯總了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);
}