Class View

All Implemented Interfaces:
CapybaraPortingLayer
Direct Known Subclasses:
DashboardView, ListView, NestedView

public abstract class View extends ContainerPageObject
Page object for view, which is a collection of jobs rendered in the UI.

Use Describable annotation to register an implementation.

Author:
Kohsuke Kawaguchi
  • Field Details

    • includeRegex

      public final Control includeRegex
    • description

      public final Control description
    • jobs

      public final JobsMixIn jobs
  • Constructor Details

    • View

      public View(com.google.inject.Injector injector, URL url)
  • Method Details

    • build

      public void build(String name)
      Clicks a build button for a job of the specified name.
    • matchAllJobs

      public void matchAllJobs()
      Configures the view to include all jobs.
    • matchJobs

      public void matchJobs(String regex)
    • delete

      public void delete()
      Deletes the view.
    • save

      public void save()
      Overrides:
      save in class ConfigurablePageObject
    • getBuildHistory

      public BuildHistory getBuildHistory()
    • containsJob

      public static Matcher<View> containsJob(Job needle)
    • checkRecurseIntoFolders

      public void checkRecurseIntoFolders()
    • setDescription

      public void setDescription(String description)
      Sets the description of the current View.
      Parameters:
      description - The description of the view.
    • getFormName

      public String getFormName()
      Overrides:
      getFormName in class ConfigurablePageObject
    • getSubmitButtonText

      public String getSubmitButtonText()
      Overrides:
      getSubmitButtonText in class ConfigurablePageObject
    • hasDescription

      public static Matcher<View> hasDescription(String description)
    • containsColumnHeaderTooltip

      public static Matcher<View> containsColumnHeaderTooltip(String tooltip)
    • containsColumnHeader

      public static Matcher<View> containsColumnHeader(String headerName)
    • containsImage

      public static Matcher<View> containsImage(String imageName)
    • containsSvgWithText

      public static Matcher<View> containsSvgWithText(String text)
    • containsLinkWithTooltip

      public static Matcher<View> containsLinkWithTooltip(String text)