All Implemented Interfaces:
CapybaraPortingLayer, Control.Owner, PageArea

public class JobsGridPortlet extends AbstractDashboardViewPortlet
The basic jobs grid portlet shipped with the dashboard view plugin.
Author:
Maximilian Zollbrecht
  • Field Details

  • Constructor Details

    • JobsGridPortlet

      public JobsGridPortlet(DashboardView parent, String path)
      Constructs a new jobs grid portlet.
      Parameters:
      parent - Parent dashboard view this portlet is scoped to.
      path - Absolute path to the area.
  • Method Details

    • setNumberOfColumns

      public void setNumberOfColumns(int numberOfColumns)
    • setFillColumnFirst

      public void setFillColumnFirst(boolean fillColumnFirst)
    • getTable

      public org.openqa.selenium.WebElement getTable() throws org.openqa.selenium.NoSuchElementException
      Gets the table of unstable jobs as WebElement.
      Returns:
      The table-WebElement containing the unstable jobs.
      Throws:
      org.openqa.selenium.NoSuchElementException - if the table is not found
    • getJob

      @CheckForNull public Job getJob(int row, int column) throws org.openqa.selenium.NoSuchElementException
      Opens and returns the job at the given position in the grid.
      Parameters:
      column - the column of the job
      row - the row of the job
      Returns:
      The job at the given position. Null if the position exists, but is empty.
      Throws:
      org.openqa.selenium.NoSuchElementException - if column or row are below 0 or higher than the column- or row-number of the grid.