本文整理匯總了C#中PegasusTests.PageHelper.ClientsHelper.Select方法的典型用法代碼示例。如果您正苦於以下問題:C# ClientsHelper.Select方法的具體用法?C# ClientsHelper.Select怎麽用?C# ClientsHelper.Select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PegasusTests.PageHelper.ClientsHelper
的用法示例。
在下文中一共展示了ClientsHelper.Select方法的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", "");
//.........這裏部分代碼省略.........