Class Frame

Direct Known Subclasses:
CommandCenter, Dashboard, NeoLegacyPerspective, Portlet, Tab, TLV

public abstract class Frame
extends Container
This class represents a frame within the page. CommandCenter is its own Frame, as is each individual Tab. Before working directly with any WebElements in a Frame, you must call switchDriver() to switch the WebDriver's frame context.
  • Field Details

  • Constructor Details

  • Method Details

    • getTLV

      public TLV getTLV()
      Returns the first TLV that is found within the Frame.
      Returns:
    • getUIContext

      public UIContext getUIContext()
      Returns the UIContext instance.
      Returns:
    • getDriver

      public org.openqa.selenium.WebDriver getDriver()
      Returns the WebDriver instance.
      Returns:
    • getIFrameEl

      public org.openqa.selenium.WebElement getIFrameEl()
      Returns the WebElement that points to the iframe element.
      Returns:
    • switchDriver

      public void switchDriver()
      This function is used to switch the WebDriver to this Frame's iframe element so that you can properly work with its elements. It should be called before working directly with any of its child WebElements.
      Overrides:
      switchDriver in class Container
    • getSearchContext

      public org.openqa.selenium.SearchContext getSearchContext()
      Description copied from class: Container
      Returns the SearchContext used for searching for Components. The default implementation returns the element passed into the constructor.
      Overrides:
      getSearchContext in class Container
      Returns:
    • getParentFrame

      public Frame getParentFrame()
    • setParentFrame

      public void setParentFrame​(Frame parentFrame)