OneCompiler

newxpath

106

By programButton = By.xpath("//a[@id='PD_header_title_Programs']")
By cohortProgramButton = By.xpath("//div[@id='0']")
By EvergreenProgramButton = By.xpath("//div[@id='1']")
By enrollCohortProgramButton = By.xpath("//button[@id='mui-1']")
By emailTextfiled = By.xpath("//input[@id='mui-11']")
By continueButton = By.xpath("//button[@id='mui-12']")
By payNowButton = By.xpath("//button[@id='mui-82']")
By cardNumberTextBox = By.xpath("//input[@placeholder='1234 1234 1234 1234']");
By monthYearTextBox = By.xpath("//input[@placeholder='MM / YY']");
By cvcTextBox = By.xpath("//input[@placeholder='MM / YY']");
By paymentSubmitButton = By.xpath("//button[normalize-space(text())='Submit payment']");
By goToProgramButton = By.xpath("//button[normalize-space(text())='Go to Program']");

By completeProfilebutton = By.xpath("//button[normalize-space(text())='Complete Profile']");
By firstNameTextBox = By.xpath("//input[@id='mui-26']")
By lastNameTextBox = By.xpath("//input[@id='mui-27']")
By genderDropDownBox = By.xpath("//div[@id='mui-31']")
By maleOption = By.xpath("//li[normalize-space(text())='Male']");
By pronounDropDownBox = By.xpath("//div[@id='mui-33']");
By heHimPronounOption =By.xpath("//li[normalize-space(text())='He/him']");

public void clickProgramButton()
{
localhelper.jsExecutorHighlight(programButton,driver);
localhelper.clickElement(programButton,driver);
logger.info("Clicking the Program Button. ")
}

public void clickCohortProgramButton()
{
localhelper.jsExecutorHighlight(cohortProgramButton,driver);
localhelper.clickElement(cohortProgramButton,driver);
logger.info("Clicking the Cohort Program Button. ")
}

public void clickEvergreenProgramButton()
{
localhelper.jsExecutorHighlight(EvergreenProgramButton,driver);
localhelper.clickElement(EvergreenProgramButton,driver);
logger.info("Clicking the Evergreen Program Button. ")

}

public void clickGoToProgramButton()
{
localhelper.jsExecutorHighlight(goToProgramButton,driver);
localhelper.clickElement(goToProgramButton,driver);
logger.info("Clicking the Go To Program Button. ")

}

public void clickPayNowButton()
{
localhelper.jsExecutorHighlight(payNowButton,driver);
localhelper.clickElement(payNowButton,driver);
logger.info("Clicking the Paynow Button. ")
}

public void clickPayNowButton()
{
localhelper.jsExecutorHighlight(payNowButton,driver);
localhelper.clickElement(payNowButton,driver);
logger.info("Clicking the Paynow Button. ")
}

public void clickAndSendcardNumberTextBox()
{
localhelper.jsExecutorHighlight(cardNumberTextBox,driver);
localhelper.clickElement(cardNumberTextBox,driver);
logger.info("Entering the credit card number. ")
localhelper.sendKeys(cardNumberTextBox,"2424242424242424")
logger.info("Entered the credit card number.")
}

public void clickAndSendMonthYearTextBox()
{
localhelper.jsExecutorHighlight(monthYearTextBox,driver);
localhelper.clickElement(monthYearTextBox,driver);
logger.info("Entering the Month&Year. ")
localhelper.sendKeys(monthYearTextBox,"10,25")
logger.info("Entered the Month&Year.")

}

public void clickAndSendCvcTextBox()
{
localhelper.jsExecutorHighlight(cvcTextBox,driver);
localhelper.clickElement(cvcTextBox,driver);
logger.info("Entering CVC Number. ")
localhelper.sendKeys(cvcTextBox,"10,25")
logger.info("Entered CVC Number.")

}

public void clickAndSendPaymentSubmitButton()
{
localhelper.jsExecutorHighlight(paymentSubmitButton,driver);
localhelper.clickElement(paymentSubmitButton,driver);
logger.info("Clicking Payment Submit Button.")

}