public void ticketSettingAdmin() { 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()); var clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Variable var TicketName = "Test" + RandomNumber(9, 999); var NewName = "TestNew Ticket" + RandomNumber(1,99); //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."); clientBugsHelper.WaitForWorkAround(4000); //Redirect To Admin GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/admin"); clientBugsHelper.WaitForWorkAround(4000); //Ticket Tab clientBugsHelper.ClickElement("TicketTab1"); GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/tickets/settings"); //Select Ticket Created Status clientBugsHelper.Select("SelectTicketCreatedStatus","New"); //Select Ticket Created Status clientBugsHelper.Select("ResolvedTicketStatus", "Resolved Status"); //Select Ticket Created Status clientBugsHelper.Select("ClosedTicketStatus", "Closed"); //Click Save clientBugsHelper.ClickElement("ClickOnAddBtn"); clientBugsHelper.WaitForWorkAround(3000); }
public void filterForAgent() { 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()); var clientBugsHelper = new ClientBugsHelper(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."); clientBugsHelper.WaitForWorkAround(4000); //Click On Agent Tab // clientBugsHelper.ClickElement("ClickOnAgentTab"); GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/agents"); clientBugsHelper.WaitForWorkAround(4000); //Select Agent Type clientBugsHelper.Select("SelectAgentType", ""); clientBugsHelper.WaitForWorkAround(3000); //Select Agent Type clientBugsHelper.Select("SelectStatus", "Active"); clientBugsHelper.WaitForWorkAround(3000); //Select Agent Type clientBugsHelper.Select("SelectRole", ""); clientBugsHelper.WaitForWorkAround(3000); //Select Agent Type clientBugsHelper.Select("SelectDepartment", ""); clientBugsHelper.WaitForWorkAround(3000); //Select Agent Type clientBugsHelper.Select("SelectTeam", ""); clientBugsHelper.WaitForWorkAround(3000); }
public void residualIncomePayoutSummaryOfficeViewReports() { 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 var residualIncmeOfficeHelper = new ResidualIncmeOfficeHelper(GetWebDriver()); var clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Variable String AdjName = "Rule Test" + RandomNumber(1,99); //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 Residual Income tab residualIncmeOfficeHelper.ClickElement("ClickOnResidualIncome"); //Goto Adjustment rule GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary"); clientBugsHelper.WaitForWorkAround(4000); //File Format clientBugsHelper.Select("FileFormat", "First Data North"); clientBugsHelper.WaitForWorkAround(3000); //Select Status // clientBugsHelper.Select("SelectStatusRIReport", "Published"); // clientBugsHelper.WaitForWorkAround(3000); //Click On RI Date clientBugsHelper.ClickElement("ClickOnRIDate"); clientBugsHelper.WaitForWorkAround(3000); }
public void createMeetingActivities() { 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 clientBugsHelper = new ClientBugsHelper(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 clientBugsHelper.ClickElement("ClickOnActivityTab"); //Click to open client info GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/meetings/create"); clientHelper.WaitForWorkAround(3000); //Enter Subject for the task clientHelper.TypeText("MeetingSubject", "TESTING MEETING SUBJECT"); //Enter Subject for the task clientHelper.TypeText("MeetingLocation", "TESTING MEETING LOCATION"); //Enter date in the date field clientHelper.TypeText("StartDateMeting", "2015-03-25"); //Enter Date in the End Date field clientHelper.TypeText("EndMeetingDate", "2015-03-26"); //Select Related To clientBugsHelper.Select("SelectRelatedTo", "20"); clientBugsHelper.WaitForWorkAround(4000); //Click On Assigned To clientBugsHelper.ClickElement("ClickOnAssignedToMeeting"); clientBugsHelper.WaitForWorkAround(4000); //Clcik on Client You Want To Invite clientBugsHelper.ClickElement("ClickOnClientMeeting"); clientBugsHelper.WaitForWorkAround(4000); //Click On Save button clientBugsHelper.ClickElement("SaveActivity"); clientBugsHelper.WaitForWorkAround(3000); //verify page text clientBugsHelper.VerifyPageText("Meeting saved successfully."); clientBugsHelper.WaitForWorkAround(3000); }
public void editTicketForClient() { 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()); var clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Variable var TicketName = "Test" + RandomNumber(9, 999); var NewName = "TestNew Ticket" + RandomNumber(1,99); //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."); clientBugsHelper.WaitForWorkAround(4000); //Click On Client Tab clientBugsHelper.ClickElement("ClientTab"); clientBugsHelper.WaitForWorkAround(4000); //Clcik on Clinet clientBugsHelper.ClickElement("ClickOnClient"); clientBugsHelper.WaitForElementPresent("CreateTicketBtn", 40); //scroll to element clientBugsHelper.scrollToElement("CreateTicketBtn"); //Create Ticket Btn clientBugsHelper.ClickElement("CreateTicketBtn"); clientBugsHelper.WaitForElementPresent("EnterTicketName",40); //Enter Ticket Name clientBugsHelper.TypeText("EnterTicketName", TicketName); //Enter Description clientBugsHelper.TypeText("TicketDescription","Testing Ticket Description"); //Click on Select clientBugsHelper.Select("SelectStatustICKET", "Open"); //Click on Select clientBugsHelper.SelectDropDownByText("//*[@id='TicketAssignedUserId']", "Aslam Khan"); //Click on Select clientBugsHelper.SelectDropDownByText("//*[@id='TicketAssignedManagerId']", "Aslam Khan"); //Clcik Save ticket button clientBugsHelper.ClickDisplayed("//input[@value='Save']"); clientBugsHelper.WaitForWorkAround(2000); //Click on Loc clientBugsHelper.VerifyPageText("1 Ticket(s) created"); clientBugsHelper.VerifyPageText(TicketName); clientBugsHelper.WaitForWorkAround(2000); //Click on Ticket Tab // clientBugsHelper.ClickElement("TicketTab"); GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/ticket-search/open"); //Search Ticket clientBugsHelper.TypeText("TaskSearch", TicketName); clientBugsHelper.WaitForWorkAround(3000); //Click On Ticket clientBugsHelper.ClickElement("ClickOnEditTicket"); clientBugsHelper.WaitForWorkAround(3000); //Enter Ticket Name clientBugsHelper.TypeText("EnterTicketName", TicketName); //Click on Save clientBugsHelper.ClickElement("ClickOnSaveButn"); clientBugsHelper.VerifyPageText("Ticket Edited Successfully"); clientBugsHelper.WaitForWorkAround(3000); }
public void sentEmailVerifyResidualIncomeReports() { 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 var residualIncmeOfficeHelper = new ResidualIncmeOfficeHelper(GetWebDriver()); var clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Variable var email = "Testing" + RandomNumber(1,999) + "@yopmail.com"; var subject = "This is Testing Subject" + RandomNumber(1,999); //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 Residual Income tab residualIncmeOfficeHelper.ClickElement("ClickOnResidualIncome"); //Goto Adjustment rule GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary"); clientBugsHelper.WaitForWorkAround(4000); //Select Status clientBugsHelper.Select("SelectStatusRIReport", "Published"); clientBugsHelper.WaitForWorkAround(3000); //Click on View Report clientBugsHelper.ClickElement("ViewReports"); clientBugsHelper.WaitForWorkAround(4000); //Verify Text Selenium Corp Residual Reports clientBugsHelper.VerifyPageText("Selenium Corp Residual Reports"); //Click On Email Icon clientBugsHelper.ClickElement("ClickOnEmailIcon"); //Enter To Email clientBugsHelper.TypeText("EnterToEmailRI", email); //Enter Subject clientBugsHelper.TypeText("EnterSubjectAttRI", subject); //Click on Send button clientBugsHelper.ClickElement("EmailSendButtonRI"); clientBugsHelper.WaitForWorkAround(4000); //Verify Report Mail is Sent Successfully. clientBugsHelper.VerifyPageText("Report Mail is Sent Successfully."); //Click On Activity Tab clientBugsHelper.ClickElement("ClickOnActivityTab"); //Redirect To Page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/mails/sent"); clientBugsHelper.WaitForWorkAround(4000); //Enter To Search RI clientBugsHelper.TypeText("EnterToSearchRI",email); //Enter Subject clientBugsHelper.TypeText("EnterSubjectRI", subject); clientBugsHelper.WaitForWorkAround(4000); //Click on Email clientBugsHelper.ClickElement("ClickPDF"); clientBugsHelper.WaitForWorkAround(3000); clientBugsHelper.VerifyPageText(email); clientBugsHelper.VerifyPageText(subject); clientBugsHelper.WaitForWorkAround(3000); }
public void createTicketAndDeleteTicketFromAgnet() { 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()); var clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Variable var TicketName = "Test" + RandomNumber(1, 99); //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."); clientBugsHelper.WaitForWorkAround(4000); //Click On Client Tab clientBugsHelper.ClickElement("ClientTab"); clientBugsHelper.WaitForWorkAround(4000); //Clcik on Clinet clientBugsHelper.ClickElement("ClickOnClient"); //Create Ticket Btn clientBugsHelper.ClickElement("CreateTicketBtn"); //Enter Ticket Name clientBugsHelper.TypeText("EnterTicketName", TicketName); //Enter Description clientBugsHelper.TypeText("TicketDescription","Testing Ticket Description"); //Click on Select clientBugsHelper.Select("SelectStatustICKET", "Open"); //Click on Select clientBugsHelper.SelectDropDownByText("//*[@id='TicketAssignedUserId']", "Aslam Khan"); //Click on Select clientBugsHelper.Select("//*[@id='TicketAssignedManagerId']", "Aslam Khan"); //Clcik Save ticket button clientBugsHelper.ClickDisplayed("//input[@value='Save']"); clientBugsHelper.WaitForWorkAround(2000); //Click on Loc clientBugsHelper.VerifyPageText("1 Ticket(s) created"); clientBugsHelper.VerifyPageText(TicketName); clientBugsHelper.WaitForWorkAround(2000); //Redirect To Logout Page GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout"); //############### LOGIN AS MY EMPLOYEE AGENT //Enter User name clientBugsHelper.TypeText("EnterUsername", "MyEmpAgent"); //Enter Password clientBugsHelper.TypeText("EnterPassword", "1qaz!QAZ"); //Click login button clientBugsHelper.ClickElement("LoginBtn"); //Click on Ticket tab clientBugsHelper.ClickElement("TicketTab"); GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/tickets"); clientBugsHelper.WaitForWorkAround(3000); //Enter Ticket Subject clientBugsHelper.TypeText("TaskSearch", TicketName); clientBugsHelper.WaitForWorkAround(3000); //Click On Check box clientBugsHelper.ClickElement("ClickOnOppChjkBox"); //Click on Delete clientBugsHelper.ClickElement("ClickDeleteIcon"); clientBugsHelper.AcceptAlert(); clientBugsHelper.WaitForWorkAround(3000); clientBugsHelper.VerifyPageText("Records deleted successfully"); clientBugsHelper.WaitForWorkAround(2000); }
public void residualIncomePublishPayoutFromOffice() { 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 var loginHelper = new LoginHelper(GetWebDriver()); var clientHelper = new ClientsHelper(GetWebDriver()); var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver()); var resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver()); var resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver()); var clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Login with valid credential Username loginAsCorpHelper.TypeText("EnterUsername", "selcorp"); //Login with valid credential password loginAsCorpHelper.TypeText("EnterPassword", "seWelcome2"); //Click On Login Button loginAsCorpHelper.ClickElement("ClickOnLoginButton"); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Residual Income tab resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab"); //Click to Import resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage(); //Click On Import New button resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew"); //Processor resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Reporting Period resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11"); resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectYr", "2016"); //File Date clientBugsHelper.ClickElement("ClickOnFileDate"); //Click on Date clientBugsHelper.ClickElement("SelectDate"); var FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FirstDataNorth_ResidualSamples - Small.csv"; resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Import resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000); //################################## SET FILTER ################################## //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016"); // Select Processor Filer resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North"); //Select Filter FileFormat resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North"); //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small"); //Select Status resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported"); //############# CALCULATION WIZARD //Click On Calculation wizard resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Click On Step1 resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSkipRecal1"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000); //Click on skip step 2 resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickSkipStp2Recal"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000); // Publish Payout resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("PublishPayout"); // resdiualIncmeFstDataNrthHelper.elementpre(); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000); //################################## SET FILTER ################################## //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016"); // Select Processor Filer resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North"); //Select Filter FileFormat resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North"); //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small"); //Select Status resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Published"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000); //Logout GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Click on Residual Income Tab clientBugsHelper.ClickElement("ClickOnPDFTemplates"); clientBugsHelper.WaitForWorkAround(3000); //Redirect To URL GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary"); resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000); //Select Filter ReportingPeriod resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016"); // Select Processor Filer resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North"); //Select Filter FileFormat resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North"); //Select Filter ReportingPeriod // resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small"); //Select Status New clientBugsHelper.Select("SelectStatusRIReport", "New"); clientBugsHelper.WaitForWorkAround(3000); //Click On Calculation Wizard clientBugsHelper.ClickElement("ClickOnCalculationWizard"); //Agent LookUp clientBugsHelper.ClickElement("AgentLookUp"); clientBugsHelper.WaitForWorkAround(3000); //Calculate Adjustment clientBugsHelper.ClickElement("CalculateAdjustment"); clientBugsHelper.WaitForWorkAround(3000); clientBugsHelper.VerifyPageText("Adjustments calculation successfully completed"); //AgentPayout Calculation clientBugsHelper.ClickElement("AgentPayoutCalculation"); clientBugsHelper.WaitForWorkAround(3000); //Click Publish clientBugsHelper.ClickElement("ClickPublish"); clientBugsHelper.WaitForWorkAround(3000); clientBugsHelper.VerifyPageText("Payouts Published."); //View Published PayoutRI clientBugsHelper.ClickElement("ViewPublishedPayoutRI"); clientBugsHelper.WaitForWorkAround(3000); }
public void statusFilterForEmployeeAgent() { 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 clientBugsHelper = new ClientBugsHelper(GetWebDriver()); //Variable var FirstName = "Test" + RandomNumber(1, 99); var LastName = "Tester" + RandomNumber(1, 99); var Number = "12345678" + RandomNumber(10, 99); //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 // clientBugsHelper.ClickElement("ClickOnAgentTab"); //Redirect To URL GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/employees"); //Select Status clientBugsHelper.Select("SelectStatus", "Active"); clientBugsHelper.WaitForElementPresent("VerifyStatus",20); //Verify page text clientBugsHelper.VerifyText("VerifyStatus", "Active"); clientBugsHelper.WaitForWorkAround(3000); //Select Status clientBugsHelper.Select("SelectStatus", "Disabled"); // clientBugsHelper.WaitForElementPresent("VerifyStatus", 20); //Verify page text // clientBugsHelper.VerifyText("VerifyStatus", "Inactive"); //Select Status clientBugsHelper.Select("SelectStatus", ""); clientBugsHelper.WaitForWorkAround(3000); //Verify page text clientBugsHelper.VerifyPageText("Active"); clientBugsHelper.WaitForWorkAround(3000); //Verify Page Text // clientBugsHelper.VerifyPageText("Inactive"); // clientBugsHelper.WaitForWorkAround(3000); }