public void pDFEmailFromClient() { string[] username = null; string[] password = null; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects LoginHelper loginHelper = new LoginHelper(GetWebDriver()); ClientsHelper clientHelper = new ClientsHelper(GetWebDriver()); CreatePDFsHelper createPDFsHelper = new CreatePDFsHelper(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."); createPDFsHelper.WaitForWorkAround(4000); //Click On Client Tab createPDFsHelper.ClickElement("ClientTab"); //Enter Client in search field // createPDFsHelper.TypeText("CompanyNameSrch", "DBAName201505252332461287"); //Click on Client createPDFsHelper.ClickElement("ClickOnClinet"); //Click On PDF Tabs createPDFsHelper.ClickElement("ClickOnPDFTabs"); //Click on Share Link createPDFsHelper.ClickElement("ClickOnEmail"); //Click on Share Agreement createPDFsHelper.ClickElement("ConirmAndContinue"); createPDFsHelper.WaitForWorkAround(7000); //Accept To Share createPDFsHelper.ClickElement("ClickOnSendPDFEmail"); createPDFsHelper.WaitForWorkAround(7000); //Verify the message createPDFsHelper.VerifyPageText("E-Mail Sent Successfully."); }
public void exportClient() { string[] username = null; string[] password = null; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects LoginHelper loginHelper = new LoginHelper(GetWebDriver()); ClientsHelper clientHelper = new ClientsHelper(GetWebDriver()); CreatePDFsHelper createPDFsHelper = new CreatePDFsHelper(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."); createPDFsHelper.WaitForWorkAround(4000); //Click On Client Tab // createPDFsHelper.ClickElement("ClientTab"); GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients"); createPDFsHelper.WaitForWorkAround(4000); //Click Export Btn createPDFsHelper.ClickElement("ExportBtn"); //Click on Export to csv createPDFsHelper.ClickElement("ExportToExcel"); createPDFsHelper.WaitForWorkAround(4000); }