public void createUserError1() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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"); //Go to Create user page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/users/create"); //Verify title VerifyTitle("Create User"); //Select User type partnerAgentHelperNewSkin.SelectByText("Usertype", "Employee"); //Click on Create new partnerAgentHelperNewSkin.ClickElement("UserCreate"); //Enter first name partnerAgentHelperNewSkin.TypeText("UserFirstName", "Aslam"); //Enter last Name partnerAgentHelperNewSkin.TypeText("UserLastName", "Khan"); //Enter existing user name partnerAgentHelperNewSkin.TypeText("Userusername", username[0]); //Enter primary email partnerAgentHelperNewSkin.TypeText("UserEmail", "*****@*****.**"); //Click on 'Save' button partnerAgentHelperNewSkin.ClickElement("UserSave"); //Wait for text partnerAgentHelperNewSkin.WaitForText("This username already taken", 50); //Verify error not displayed partnerAgentHelperNewSkin.VerifyTextNotPresent("Internal server error page"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void verifyMyAccount() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver()); //Verify title VerifyTitle("Login"); //Click on Verify my account partnerAgentHelperNewSkin.ClickElement("VerifyAccount"); //Enter username partnerAgentHelperNewSkin.TypeText("VerifyUsername", "aslamKhan"); //Click on V partnerAgentHelperNewSkin.ClickElement("VerifyBody"); //Verify error not displayed partnerAgentHelperNewSkin.VerifyTextNotPresent("Please include an '@' in the email address"); }
public void checkFilter() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to Detals payout page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/rir/detailed_payouts"); //Verify title VerifyTitle("Residual Income - Payouts"); //Open on advanced filter partnerAgentHelperNewSkin.ClickElement("Advance"); //Verify title VerifyTitle("Residual Income - Payouts"); //Get count of available item in the Available Columns //Get Count of available item in the Display Columns //Go to the transaction page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/rir/payout_summary"); //Verify title VerifyTitle("Payouts Summary"); //Click on View transaction button partnerAgentHelperNewSkin.ClickElement("ViewTrans"); //Verify title VerifyTitle("Residual Income Import Transactions"); //Open on advanced filter partnerAgentHelperNewSkin.ClickElement("Advance"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void fieldDictionaryFields() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to Field Dictionary Fields page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/fields"); //Verify Title VerifyTitle("Field Management"); //Select Module partnerAgentHelperNewSkin.SelectByText("FSModule", "Clients"); partnerAgentHelperNewSkin.WaitForWorkAround(3000); //Select Tab partnerAgentHelperNewSkin.SelectByText("FSTab", "Company Details"); //Click on Search Button partnerAgentHelperNewSkin.ClickElement("FSSearch"); //Verify field availabe partnerAgentHelperNewSkin.verifyElementPresent("FSFilter"); //Enter mail partnerAgentHelperNewSkin.TypeText("FSFilter", "Mail"); //Click on Mail partnerAgentHelperNewSkin.ClickElement("FSMail"); //Verify Manage button available partnerAgentHelperNewSkin.verifyElementPresent("FSManage"); //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void createClientError() { 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 partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //navigate to the Create client page. GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create"); //verify title VerifyTitle("Create a Client"); //Select Status partnerAgentHelperNewSkin.SelectByText("ClientStatus", "Agreement"); //Select Responsibility partnerAgentHelperNewSkin.SelectByText("ClientRespo", "Aslam Khan"); //Click on Company details tab partnerAgentHelperNewSkin.ClickElement("ClientCompany"); //Verify field available for company DBA name partnerAgentHelperNewSkin.verifyElementPresent("ClientDBAName"); //Enter DBA name partnerAgentHelperNewSkin.TypeText("ClientDBAName", "DBA"); //Enter legal name partnerAgentHelperNewSkin.TypeText("ClientLegalName", RandomNumber(1,1000).ToString()); //Click on Save button partnerAgentHelperNewSkin.ClickElement("OfficeSave"); //Verify error not displayed partnerAgentHelperNewSkin.VerifyTextNotPresent("Already Exist"); }
public void profilePictureChange() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to Profile page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/myprofile"); //Verify title VerifyTitle("My Profile"); //Click on Edit profile button partnerAgentHelperNewSkin.ClickElement("ProfileEdit"); //Verify title VerifyTitle("Edit Profile"); //Upload image string path = GetPathToFile() + "index.jpg"; partnerAgentHelperNewSkin.UploadImage("UploadImage", path); //Click on Save button partnerAgentHelperNewSkin.ClickElement("OfficeSave"); //Verify title VerifyTitle("My Profile"); //Check default image not displayed partnerAgentHelperNewSkin.verifyElementNotPresent("ProfileDefault"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void meetingClientEmail() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to Create Meeting page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/meetings/create"); //Verify title VerifyTitle("Create a Meeting"); //Select Releted to partnerAgentHelperNewSkin.SelectByText("ReletedTo", "Client"); //Click on Assign icon partnerAgentHelperNewSkin.ClickElement("AssignMeeting"); partnerAgentHelperNewSkin.WaitForWorkAround(5000); //Click on User partnerAgentHelperNewSkin.ClickElement("AssignedUser"); partnerAgentHelperNewSkin.WaitForWorkAround(5000); //Verify email displayed partnerAgentHelperNewSkin.verifyElementAvailable("EmailField"); //Select Releted to partnerAgentHelperNewSkin.SelectByText("ReletedTo", "Lead"); //Verify email removed partnerAgentHelperNewSkin.verifyElementNotAvailable("EmailField"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void blankSubjectValidation() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Visit to Opportunities page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/opportunities"); //Verify title VerifyTitle("Opportunities"); //Open an opportunities partnerAgentHelperNewSkin.ClickElement("OpenOpportunities"); //Verify title VerifyTitle("Details"); //Click on Add note button partnerAgentHelperNewSkin.ClickElement("AddNote"); //Wait for text partnerAgentHelperNewSkin.WaitForText("Create a Note", 30); //Click on Save button without subject partnerAgentHelperNewSkin.ClickElement("ClickOnSaveBtnAdjustmnet"); //Verify validation message partnerAgentHelperNewSkin.verifyElementPresent("NoteError"); partnerAgentHelperNewSkin.WaitForText("This field is required",30); //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void sysPRNIssue1() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username2"); password = oXMLData.getData("settings/Credentials", "password2"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to office code management GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/office_codes_management"); //Verify title VerifyTitle("Office Codes Management"); //Select Sysprins partnerAgentHelperNewSkin.SelectByText("SelectSys", "Sysprins"); partnerAgentHelperNewSkin.WaitForWorkAround(3000); //Enter value1 partnerAgentHelperNewSkin.TypeText("Value1", GetRandomNumber().ToString()); //Click on Add button partnerAgentHelperNewSkin.ClickElement("AddAnother"); partnerAgentHelperNewSkin.WaitForWorkAround(1000); //Click on Second primary option partnerAgentHelperNewSkin.ClickElement("SecOp"); //Click on Save button partnerAgentHelperNewSkin.ClickElement("RMPSave"); partnerAgentHelperNewSkin.WaitForWorkAround(3000); // verify error not displayed //partnerAgentHelperNewSkin.VerifyTextNotAvailable("blank Sys/Prin Number has been removed and now there is no longer a Primary Sys/Prin"); }
public void createPickList() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to picklist page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/pick-lists"); //Verify title VerifyTitle("Picklists"); // Open the first picklist partnerAgentHelperNewSkin.ClickElement("EditPick"); //Veirfy title VerifyTitle("Add/Edit Picklist Items"); //Click on Add button partnerAgentHelperNewSkin.ClickElement("AddPick"); partnerAgentHelperNewSkin.WaitForWorkAround(2000); //Enter name partnerAgentHelperNewSkin.TypeText("PickType","Pick"+GetRandomNumber()); //Click on Save button partnerAgentHelperNewSkin.ClickElement("PickSave"); //Wait for text partnerAgentHelperNewSkin.WaitForText("The picklist value is added successfully", 30); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void manageMultipleSysprins() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username2"); password = oXMLData.getData("settings/Credentials", "password2"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to office code management GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/office_codes_management"); //Verify title VerifyTitle("Office Codes Management"); //Select Sysprins partnerAgentHelperNewSkin.SelectByText("SelectSys", "Sysprins"); partnerAgentHelperNewSkin.WaitForWorkAround(3000); //Enter value1 partnerAgentHelperNewSkin.TypeText("Value1", GetRandomNumber().ToString()); partnerAgentHelperNewSkin.WaitForWorkAround(1000); //Click on Add button partnerAgentHelperNewSkin.ClickElement("AddAnother"); //Enter value2 partnerAgentHelperNewSkin.TypeText("Value2", GetRandomNumber().ToString()); partnerAgentHelperNewSkin.WaitForWorkAround(1000); //Click on Save button partnerAgentHelperNewSkin.ClickElement("RMPSave"); //Click on Save button partnerAgentHelperNewSkin.WaitForText("Office codes updated successfully.", 30); }
public void fieldDictionarySection() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to Field Dictionary Section page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/sections"); //Verify Title VerifyTitle("Section Management"); //Click on Change tab button partnerAgentHelperNewSkin.ClickElement("FSChangeTab"); //Verify error not displayed partnerAgentHelperNewSkin.VerifyTextNotPresent("An Internal Error Has Occurred"); //Click on Save button partnerAgentHelperNewSkin.ClickElement("FSSave"); //Accept alert partnerAgentHelperNewSkin.AcceptAlert(); //Verify error not displayed partnerAgentHelperNewSkin.VerifyTextNotPresent("An Internal Error Has Occurred"); //Verify page text partnerAgentHelperNewSkin.VerifyPageText("The section sucessfully added to the selected tab"); //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void verifyMailMessage() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username2"); password = oXMLData.getData("settings/Credentials", "password2"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Visit to Report page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/rir/reports"); //Verify title VerifyTitle("Residual Income - Reports"); //Select Office partnerAgentHelperNewSkin.ClickElement("SelOffice"); //Wait for text in page partnerAgentHelperNewSkin.WaitForText("SelCorp Residual Reports", 30); //Click on Send button partnerAgentHelperNewSkin.ClickElement("SendMail"); //Wait for text partnerAgentHelperNewSkin.WaitForText("From",30); //Click On Send button partnerAgentHelperNewSkin.ClickElement("MailSend"); //Wait for text partnerAgentHelperNewSkin.WaitForText("Report Mail Sent Successfully.", 30); //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void vendorEmailVerification() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Visit to create vendor page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/vendors/create"); //Verify title VerifyTitle("Create a New Vendor"); //Click on 'Save' button without entering details partnerAgentHelperNewSkin.ClickElement("OfficeSave"); //Verify Validation message displayed for email partnerAgentHelperNewSkin.verifyElementPresent("EmailVerification"); //Enter invalid email partnerAgentHelperNewSkin.TypeText("EmailVendor", "INVALID"); //Click on 'Save' button after entering invalid email partnerAgentHelperNewSkin.ClickElement("OfficeSave"); //Verify email validate partnerAgentHelperNewSkin.verifyElementPresent("EmailVerification"); partnerAgentHelperNewSkin.VerifyPageText("Please enter a valid email address"); //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void uploadedLogo() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username2"); password = oXMLData.getData("settings/Credentials", "password2"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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 Edit profile button partnerAgentHelperNewSkin.ClickElement("CorpProfile"); //Verify title VerifyTitle("Edit SelCorp Corporate"); //Upload image string path = GetPathToFile() + "index2.png"; partnerAgentHelperNewSkin.UploadImage("UploadLogo", path); //Wait partnerAgentHelperNewSkin.WaitForWorkAround(3000); //Click on Save button partnerAgentHelperNewSkin.ClickElement("OfficeSave"); //Verify title VerifyTitle("Dashboard"); //Check default image not displayed partnerAgentHelperNewSkin.verifyElementNotPresent("LogoDefault"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void loginError1() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver()); //Verify title VerifyTitle("Login"); //Click on Verify my account partnerAgentHelperNewSkin.ClickElement("VerifyAccount"); //Enter username partnerAgentHelperNewSkin.TypeText("VerifyUsername", "aslamKhan"); //Click on V partnerAgentHelperNewSkin.ClickElement("VerifyBody"); //Refresh the page RefreshPage(); //Verify title VerifyTitle("Login"); //Click on Verify my account partnerAgentHelperNewSkin.ClickElement("VerifyAccount"); //Verify field is blank partnerAgentHelperNewSkin.VerifyTextNotPresent("aslamKhan"); //Enter username partnerAgentHelperNewSkin.TypeText("VerifyUsername", "aslamKhan"); //Click on Send email button partnerAgentHelperNewSkin.ClickElement("VerifySend"); //Wait for text partnerAgentHelperNewSkin.WaitForText("Your email is already verified",30); }
public void lastActivityBy() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to client page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients"); //Verify title VerifyTitle("Clients"); //Click on Advance filter partnerAgentHelperNewSkin.ClickElement("Advance"); //Click on Last activity by option partnerAgentHelperNewSkin.ClickElement("LastByActivity"); //Click on Arrow icon partnerAgentHelperNewSkin.ClickElement("AddArrow"); //Click on Apply partnerAgentHelperNewSkin.ClickElement("Apply"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void clientRequiredField() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to create a client page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create"); //Verify title VerifyTitle("Create a Client"); //Click on Save button without entering any details partnerAgentHelperNewSkin.ClickElement("OfficeSave"); //Click on 'Company details' tab partnerAgentHelperNewSkin.ClickElement("ComDetails"); //Verify error displayed for 'DBA field' partnerAgentHelperNewSkin.verifyElementPresent("DBAMandatory"); partnerAgentHelperNewSkin.verifyElementPresent("DBAerror"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void shippingFilterError() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Visit to create vendor page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/shipping_carriers"); //Verify title VerifyTitle("Shipping Carriers"); //Apply Filter partnerAgentHelperNewSkin.TypeText("FilterName", GetRandomNumber().ToString()); partnerAgentHelperNewSkin.WaitForWorkAround(3000); //Verify filter available partnerAgentHelperNewSkin.verifyElementNotPresent("NonFilter"); //Click on Refresh button partnerAgentHelperNewSkin.ClickElement("RefreshButton"); //verify title VerifyTitle("Shipping Carriers"); //Verify filter reset partnerAgentHelperNewSkin.verifyElementPresent("NonFilter"); //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void loginError2() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver()); //Verify title VerifyTitle("Login"); //Click on Verify my account partnerAgentHelperNewSkin.ClickElement("VerifyAccount"); //Enter username partnerAgentHelperNewSkin.TypeText("VerifyUsername", "aa"); //Click on V partnerAgentHelperNewSkin.ClickElement("VerifyBody"); //Click on Send email button partnerAgentHelperNewSkin.ClickMultiple("VerifySend"); //Accept Alert partnerAgentHelperNewSkin.AcceptAlert(); //Enter username partnerAgentHelperNewSkin.TypeText("VerifyUsername", "aslamKhan"); }
public void verifySuccessMessage() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to Import Leads page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/leads/import"); //Verify title VerifyTitle("Leads"); string file = GetPathToFile() + "leadslist.csv"; //Uplaod file partnerAgentHelperNewSkin.UploadFile("//*[@id='vcard_file']", file); //Click on Import button partnerAgentHelperNewSkin.ClickElement("LeadImport"); //Verify success message partnerAgentHelperNewSkin.WaitForText("Records Imported Successfully.",20); //Enter ammount //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void additionalFilter() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username2"); password = oXMLData.getData("settings/Credentials", "password2"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to payment page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/rir/detailed_payouts"); //verify title VerifyTitle("Residual Income - Payouts"); //Click on Filter partnerAgentHelperNewSkin.ClickElement("Advance"); //Wait for text partnerAgentHelperNewSkin.WaitForText("Filter By Additional Fields", 20); //Verify User is able to select TransactionFile partnerAgentHelperNewSkin.SelectByText("TraFile", "Amex Return Sales"); partnerAgentHelperNewSkin.SelectByText("TraFile", "Amex Return Transactions"); partnerAgentHelperNewSkin.SelectByText("TraFile", "Assessment Fee"); //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void clientMerchantIssue1() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to create a client page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create"); //Verify title VerifyTitle("Create a Client"); //Click on 'Merchant number' tab partnerAgentHelperNewSkin.ClickElement("MerchantNumber"); //Verify Merchant number tab is highlighted partnerAgentHelperNewSkin.verifyElementPresent("MerchantNumberHighlighted"); //Verify Customer relationship is not displayed as highlighted partnerAgentHelperNewSkin.verifyElementNotPresent("CustomerRelationHighlighted"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void exportingResidualIncomePayoutsReport() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username2"); password = oXMLData.getData("settings/Credentials", "password2"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //navigate to the repror page. GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/rir/reports"); //verify title VerifyTitle("Residual Income - Reports"); //Click on Excel report button partnerAgentHelperNewSkin.ClickElement("ExcelReoprt"); var user = partnerAgentHelperNewSkin.CurrentUser(); //Get newly created file name from downloads folder var newfilename = partnerAgentHelperNewSkin.Getnewfilename(new DirectoryInfo(@"C:\" + user + @"s\" + user + @"\Downloads\")); var filepath = @"C:\" + user + @"s\" + user + @"\Downloads\" + newfilename; //Check file contains data partnerAgentHelperNewSkin.FileIsNotBlank(filepath); }
public void revenueShareButtonForPartnerAssociation() { 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 partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver()); //Variable var name = "TestAgent" + GetRandomNumber(); //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 Agent in Topmenu partnerAgentHelperNewSkin.MouseHover("ClickOnAgentTab"); //################################# CREATE A agent ############################################# //Click on Click On Partner Agent GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/partners/associations"); //ClickOnRevenueShare partnerAgentHelperNewSkin.ClickElement("RevenueSahrnepartneragent"); partnerAgentHelperNewSkin.WaitForWorkAround(6000); //Verify partnerAgentHelperNewSkin.VerifyPageText("Partner Associations"); partnerAgentHelperNewSkin.WaitForWorkAround(3000); }
public void trashIconAvail() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to document page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/documents"); //verify title VerifyTitle("Documents"); //Open Docuemnt partnerAgentHelperNewSkin.ClickElement("OpenDoc"); //verify title VerifyTitle("Document View"); //Verify trash icon available partnerAgentHelperNewSkin.verifyElementPresent("Trash"); //Log out from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void agentCreateField() { 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 partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //navigate to the Create partner agent page. GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/partners/agent/create"); //verify title VerifyTitle("Create a Partner Agent"); //Click on Create an user checkbox partnerAgentHelperNewSkin.ClickElement("CreateCheck"); //Verify fields displayed partnerAgentHelperNewSkin.verifyElementPresent("VerifyField"); //Wait for 10 secon partnerAgentHelperNewSkin.WaitForWorkAround(10000); //Verify fields displayed partnerAgentHelperNewSkin.verifyElementPresent("VerifyField"); }
public void fDNRequirement() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username2"); password = oXMLData.getData("settings/Credentials", "password2"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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"); //Go to Create office page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/offices/create"); //Verify title VerifyTitle("Create an Office"); //Click on 'Save' button partnerAgentHelperNewSkin.ClickElement("OfficeSave"); //Verify FDN field is not mandatory partnerAgentHelperNewSkin.verifyElementNotPresent("OfficeFDN"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void processorDeleteTypo() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username2"); password = oXMLData.getData("settings/Credentials", "password2"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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"); //Go to processor page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/masterdata/processor_types"); //Verify title VerifyTitle("Master Processors"); //Click on 'Delete' button partnerAgentHelperNewSkin.ClickElement("ProcessorDelete"); //Verify Alert text partnerAgentHelperNewSkin.VerifyAlertText("Are you sure you want to delete this processor permanently?"); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }
public void zipCodeError() { string[] username = null; string[] password = null; string[] log = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); log = oXMLData.getData("settings/URL", "logout"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(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."); //Go to Create Opportunity page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/opportunities/create"); //Verify title VerifyTitle("Create an Opportunity"); //Enter zip code partnerAgentHelperNewSkin.TypeText("ZipCode", "60601"); //Click On V partnerAgentHelperNewSkin.ClickElement("V"); partnerAgentHelperNewSkin.WaitForWorkAround(3000); //Go to Create lead page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/leads/create"); //Verify title VerifyTitle("Create a Lead"); //Click on Company detils partnerAgentHelperNewSkin.ClickElement("ComDetails"); //Verify title VerifyTitle("Create a Lead"); //Enter zip code partnerAgentHelperNewSkin.TypeText("LeadZip", "60601"); //Click partnerAgentHelperNewSkin.ClickElement("V1"); partnerAgentHelperNewSkin.WaitForWorkAround(3000); //Go to Create Client page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create"); //Verify title VerifyTitle("Create a Client"); //Click on Contacts tab partnerAgentHelperNewSkin.ClickElement("ConTab"); //Verify title VerifyTitle("Create a Client"); //Enter zip code partnerAgentHelperNewSkin.TypeText("ClientZip", "60601"); //Click partnerAgentHelperNewSkin.ClickElement("V2"); partnerAgentHelperNewSkin.WaitForWorkAround(3000); //Logout from the application GetWebDriver().Navigate().GoToUrl(log[0]); }