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