Package org.openqa.selenium

Examples of org.openqa.selenium.By


      fail("Evaluation not found.");
    }
  }

  public void clickAndConfirmEvaluationDelete(int row) {
    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_delete']", row + 2, 5));
    clickAndConfirm(link);
  }
View Full Code Here


      fail("Evaluation not found.");
    }
  }

  public void clickAndCancelEvaluationDelete(int row) {
    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_delete']", row + 2, 5));
    waitAndClickAndCancel(link);
  }
View Full Code Here

    verifyMainPage();
  }

  // -----------------------------UI Actions ----------------------------->> Student:
  public static void studentClickEvaluationViewResults(int row) {
    By link = By.xpath(String.format("//div[@id='studentPastEvaluations']//table[@id='dataform']//tr[%d]//td[%d]//a[1]", row + 2, 5));
    waitAndClick(link);
  }
View Full Code Here

  public static void clickCourseDetailView(int row) {
    waitAndClick(By.xpath(String.format("//table[@id='dataform']//tr[%d]//a[1]", row + 2)));
  }

  public static void clickCourseDetailEdit(int row) {
    By link = By.xpath(String.format("//table[@id='dataform']//tr[%d]//a[2]", row + 2));
    waitAndClick(link);
  }
View Full Code Here

    By link = By.xpath(String.format("//table[@id='dataform']//tr[%d]//a[2]", row + 2));
    waitAndClick(link);
  }

  public static void clickCourseDetailInvite(int row) {
    By link = By.xpath(String.format("//div[@id='coordinatorStudentTable']//table[@id='dataform']//tr[%d]//td[%d]//a[3]", row + 2, 4));
    waitAndClick(link);
  }
View Full Code Here

    waitAndClick(By.className("t_course_view"));
    waitForElementPresent(By.id("dataform tr"));
    WebElement dataform = driver.findElement(By.id("dataform"));
    while (dataform.findElements(By.tagName("tr")).size() > 1) {
      System.out.println("Delete a student...");
      By by = By.xpath(String.format("//table[@id='dataform']//tr[%d]//a[4]", 2));
      waitForElementPresent(by);
      clickAndConfirm(by);
      waitForElementPresent(By.id("dataform tr"));
    }
  }
View Full Code Here

  public static By getEvaluationStatus(int row) {
    return By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]", row + 2, 3));
  }

  public static void clickEvaluationViewResults(int row) {
    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_view']", row + 2, 5));
    waitAndClick(link);
  }
View Full Code Here

    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_view']", row + 2, 5));
    waitAndClick(link);
  }

  public static void clickEvaluationEdit(int row) {
    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_edit']", row + 2, 5));
    waitAndClick(link);
  }
View Full Code Here

    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_edit']", row + 2, 5));
    waitAndClick(link);
  }

  public static void clickEvaluationPublish(int row) {
    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_publish']", row + 2, 5));
    clickAndConfirm(link);
  }
View Full Code Here

    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_publish']", row + 2, 5));
    clickAndConfirm(link);
  }

  public static void clickEvaluationUnpublish(int row) {
    By link = By.xpath(String.format("//div[@id='coordinatorEvaluationTable']//table[@id='dataform']//tr[%d]//td[%d]//a[@class='t_eval_unpublish']", row + 2, 5));
    clickAndConfirm(link);
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.By

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.