示例#1
0
 /**
  * This method does not navigate to goal creation page. It's designed for method sharing, e.g.,
  * CDC class may call this method without navigation.
  *
  * @param driver
  * @param AppraiserAssign- no used for this class, but used in sub class
  */
 public void runCreateWithoutNavigation(WebDriver driver, boolean AppraiserAssign) {
   this.setGoalTemplate_UI(driver, this.getGoalTemplate());
   this.setGoalTitle_UI(driver, this.getGoalTitle());
   this.setWeight_UI(driver, this.getWeight());
   this.setDesc_UI(driver, this.getDesc());
   this.setMilestone_UI(driver, this.getMilestone());
   this.setProgramName_UI(driver, this.getProgramName());
   this.setProgramDesc_UI(driver, this.getProgramDesc());
   FunctionUI.setDates_UI(driver, this.getStartDate(), "startdatedatebox");
   FunctionUI.setDates_UI(driver, this.getTargetDate(), "targetdatedatebox");
   FunctionUI.setDates_UI(driver, this.getCloseDate(), "datecloseddatebox");
 }
示例#2
0
  /**
   * Create goal program
   *
   * @param driver
   */
  public void runCreateGoalProgram(WebDriver driver) {
    // Navigator.navigate(driver, Navigator.URL.GoalManager);
    Navigator.navigate(
        driver, Navigator.xmlWebElmtMgr.getNavigationPathList("ManageCenter", "GoalProg"), this);
    By by = By.id("addButton");
    WebDriverUtils.clickButton(driver, by);

    this.setProgramName_UI(driver, this.getProgramName());
    this.setProgramDesc_UI(driver, this.getProgramDesc());
    FunctionUI.setDates_UI(driver, this.getStartDate(), "startdatedatebox");
    // this.setStartDate_UI(driver, this.getStartDate());
    FunctionUI.setDates_UI(driver, this.getTargetDate(), "targetdatedatebox");
    // this.setTargetDate_UI(driver, this.getTargetDate());

    by = By.id("saveButton");
    WebDriverUtils.clickButton(driver, by);
  }