Class SideBarController

java.lang.Object
org.mycore.iview.tests.controller.WebDriverController
org.mycore.iview.tests.controller.SideBarController
Direct Known Subclasses:
ImageOverviewController, StructureOverviewController

public class SideBarController extends WebDriverController
  • Field Details

  • Constructor Details

    • SideBarController

      public SideBarController(org.openqa.selenium.WebDriver webdriver)
  • Method Details

    • assertSideBarWidth

      public boolean assertSideBarWidth(int width)
      checks the width of the sidebar
      Parameters:
      width -
      Returns:
    • assertSideBarPresent

      public boolean assertSideBarPresent()
      checks the width of the sidebar-div (default is 300px)
      Returns:
      true if the width is greater than 2px (2px cause the width of the border will be counted too)
    • getSideBarWidth

      public int getSideBarWidth()
      Returns:
      the width of the sidebar
    • countThumbnails

      public int countThumbnails()
      counts the div's, that contain 'thumbnail' in their class-attribute
      Returns:
      number of thumbnail-div's
    • scrollSidbar

      public void scrollSidbar(org.openqa.selenium.WebDriver driver, int offestX)
      scrolls offestX pixels vertically in the sidebar
      Parameters:
      driver -
      offestX -