Class SideBarController
java.lang.Object
org.mycore.iview.tests.controller.WebDriverController
org.mycore.iview.tests.controller.SideBarController
- Direct Known Subclasses:
ImageOverviewController
,StructureOverviewController
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checks the width of the sidebar-div (default is 300px)boolean
assertSideBarWidth
(int width) checks the width of the sidebarint
counts the div's, that contain 'thumbnail' in their class-attributeint
void
scrollSidbar
(org.openqa.selenium.WebDriver driver, int offestX) scrolls offestX pixels vertically in the sidebarMethods inherited from class org.mycore.iview.tests.controller.WebDriverController
assertAttributeByXpath, assertAttributeByXpath, assertElementByAttributePresent, clickElementByXpath, dragAndDropByXpath, getDriver, setDriver
-
Field Details
-
SIDEBAR_CLOSE_SELECTOR
- See Also:
-
-
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
-
-