本文整理汇总了C#中PegasusTests.PageHelper.ClientsHelper.VerifyText方法的典型用法代码示例。如果您正苦于以下问题:C# ClientsHelper.VerifyText方法的具体用法?C# ClientsHelper.VerifyText怎么用?C# ClientsHelper.VerifyText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PegasusTests.PageHelper.ClientsHelper
的用法示例。
在下文中一共展示了ClientsHelper.VerifyText方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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", "");
//.........这里部分代码省略.........