Class ViewsMixIn

All Implemented Interfaces:
CapybaraPortingLayer

public class ViewsMixIn extends MixIn
Mix-in for PageObjects that own a group of views, like Jenkins.
Author:
Kohsuke Kawaguchi
  • Constructor Details

  • Method Details

    • create

      public <T extends View> T create(Class<T> type)
    • create

      public <T extends View> T create(Class<T> type, String name)
    • get

      public <T extends View> T get(Class<T> type, String name)
      Returns the page object of a view.
      Type Parameters:
      T - The type of the view.
      Parameters:
      type - The class object of the type of the view..
      name - The name of the view.
      Returns:
      page object of a view to the corresponding type and name.