public void leadsviewtimeline() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/OrganizationSetting.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var LeadsViewPageHelper = new LeadsViewPageHelper(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 Leads LeadsViewPageHelper.ClickElement("ClickOnLeads"); //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads"); //LeadsViewPageHelper.WaitForWorkAround(7000); //Open Lead LeadsViewPageHelper.ClickElement("FirstLeadNameLink"); //################### INLINE EDIT CHANGE STATUS ######################### //Click on Change Status LeadsViewPageHelper.ClickElement("ChangeStatus"); //################### INLINE EDIT CHANGE OWNER ######################### //Click on Owner LeadsViewPageHelper.ClickElement("ClickOnOwner"); //Select Owner LeadsViewPageHelper.Select("SelectOwner", "57"); //Click On Ok button LeadsViewPageHelper.ClickElement("ClickOnOwnerOk"); //################### INLINE EDIT CHANGE MANAGER ######################### //Click on Manager LeadsViewPageHelper.ClickElement("ClickOnManager"); //Select Manager LeadsViewPageHelper.Select("SelectManager", "57"); //Click On Ok button LeadsViewPageHelper.ClickElement("ClickOnManagerOk"); //################### TIME LINE ######################### //Click On More Activity LeadsViewPageHelper.ClickElement("ClickOnMoreActivity"); //Click On List View LeadsViewPageHelper.ClickElement("ClickOnListView"); //Enter List View Search Box LeadsViewPageHelper.TypeText("EnterListViewSearchBox", ""); LeadsViewPageHelper.WaitForWorkAround(8000); //Click On Reset Button LeadsViewPageHelper.ClickElement("ClickOnListViewReset"); //Click On Graphical View LeadsViewPageHelper.ClickElement("ClickOnGraphicalView"); LeadsViewPageHelper.WaitForWorkAround(10000); //Click On User Name LeadsViewPageHelper.ClickElement("ClickOnUserName"); }
public void leadsmanagetags() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/OrganizationSetting.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var LeadsViewPageHelper = new LeadsViewPageHelper(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 Leads LeadsViewPageHelper.ClickElement("ClickOnLeads"); //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads"); //LeadsViewPageHelper.WaitForWorkAround(7000); //Open Lead LeadsViewPageHelper.ClickElement("FirstLeadNameLink"); //################### MANAGE TAGS ######################### //Click on Manage Tags LeadsViewPageHelper.ClickElement("ClickOnManageTags"); //################### YOUR TAGS ######################### //Enter Your Tag Name LeadsViewPageHelper.TypeText("EnterYourTagName", "Testtag"); //Click on Save LeadsViewPageHelper.ClickElement("ClickOnYourTagSave"); LeadsViewPageHelper.WaitForWorkAround(10000); //################### MANAGE TAGS SYSTEM GENERATED TAGS ######################### //Click on Manage Tags LeadsViewPageHelper.ClickElement("ClickOnManageTags"); //Click on System Generated Tags LeadsViewPageHelper.ClickElement("ClickOnSystemGeneratedTags"); //Click on System Generated Tags Edit LeadsViewPageHelper.ClickElement("ClickOnTagsEdit"); //Uncheck State LeadsViewPageHelper.ClickElement("UncheckState"); //Uncheck Department LeadsViewPageHelper.ClickElement("UncheckDepartment"); //Click On Recreate button LeadsViewPageHelper.ClickElement("ClickOnRecreate"); LeadsViewPageHelper.WaitForWorkAround(10000); //################### MANAGE TAGS DELETE ######################### //Click on Manage Tags LeadsViewPageHelper.ClickElement("ClickOnManageTags"); //Click on System Generated Tags LeadsViewPageHelper.ClickElement("ClickOnSystemGeneratedTags"); //Click on System Generated Tags Delete LeadsViewPageHelper.ClickElement("ClickOnTagsDelete"); LeadsViewPageHelper.WaitForWorkAround(10000); //################### TAGS SEARCH ######################### //Click on Tag Name LeadsViewPageHelper.ClickElement("ClickOnTagsName"); LeadsViewPageHelper.WaitForWorkAround(10000); }
public void leadsviewinlineedit() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/OrganizationSetting.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var LeadsViewPageHelper = new LeadsViewPageHelper(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 Leads LeadsViewPageHelper.ClickElement("ClickOnLeads"); //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads"); //LeadsViewPageHelper.WaitForWorkAround(7000); //Open Lead LeadsViewPageHelper.ClickElement("FirstLeadNameLink"); //################### INLINE EDIT CHANGE STATUS ######################### //Click on Change Status LeadsViewPageHelper.ClickElement("ChangeStatus"); //################### INLINE EDIT CHANGE OWNER ######################### //Click on Owner LeadsViewPageHelper.ClickElement("ClickOnOwner"); //Select Owner LeadsViewPageHelper.Select("SelectOwner", "57"); //Click On Ok button LeadsViewPageHelper.ClickElement("ClickOnOwnerOk"); //################### INLINE EDIT CHANGE MANAGER ######################### //Click on Manager LeadsViewPageHelper.ClickElement("ClickOnManager"); //Select Manager LeadsViewPageHelper.Select("SelectManager", "57"); //Click On Ok button LeadsViewPageHelper.ClickElement("ClickOnManagerOk"); //################### INLINE EDIT CHANGE SOURCE ######################### //Click on Source LeadsViewPageHelper.ClickElement("ClickOnSource"); //Select Source LeadsViewPageHelper.Select("SelectSource", "Cold Call/598787"); //Click On Ok button LeadsViewPageHelper.ClickElement("ClickOnSourceOk"); //################### INLINE EDIT CHANGE CATEGORY ######################### //Click on Category LeadsViewPageHelper.ClickElement("ClickOnCategory"); //Select Category LeadsViewPageHelper.Select("SelectCategory", "9248/76bf1a"); //Click On Ok button LeadsViewPageHelper.ClickElement("ClickOnCategoryOk"); //################### INLINE EDIT CHANGE PARTNER ######################### //Click on Partner LeadsViewPageHelper.ClickElement("ClickOnPartner"); //Select Partner LeadsViewPageHelper.Select("SelectPartner", ""); //Click On Ok button LeadsViewPageHelper.ClickElement("ClickOnPartnerOk"); }