Class ToolBarController
java.lang.Object
org.mycore.iview.tests.controller.WebDriverController
org.mycore.iview.tests.controller.ToolBarController
- Author:
- Sebastian Röher (basti890)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clicks the first element with data-id="id"boolean
isImageSelected
(String oderLabel) checks if the image with the orderLabel is selectedvoid
pressButton
(String id) clicks the first element with class="btn" and data-id="id"void
selectPictureWithOrder
(String orderLabel) selects the first picture with the label orderLabel in the selectboxMethods inherited from class org.mycore.iview.tests.controller.WebDriverController
assertAttributeByXpath, assertAttributeByXpath, assertElementByAttributePresent, clickElementByXpath, dragAndDropByXpath, getDriver, setDriver
-
Field Details
-
BUTTON_ID_ZOOM_IN
- See Also:
-
BUTTON_ID_ZOOM_OUT
- See Also:
-
BUTTON_ID_ZOOM_WIDTH
- See Also:
-
BUTTON_ID_ZOOM_FIT
- See Also:
-
BUTTON_ID_PREV_IMG
- See Also:
-
BUTTON_ID_NEXT_IMG
- See Also:
-
BUTTON_ID_SIDEBAR_CONTROLL
- See Also:
-
-
Constructor Details
-
ToolBarController
public ToolBarController(org.openqa.selenium.WebDriver webdriver)
-
-
Method Details
-
pressButton
clicks the first element with class="btn" and data-id="id"- Parameters:
id
-
-
clickElementById
clicks the first element with data-id="id"- Parameters:
id
-
-
selectPictureWithOrder
selects the first picture with the label orderLabel in the selectbox- Parameters:
orderLabel
-
-
isImageSelected
checks if the image with the orderLabel is selected- Parameters:
oderLabel
-- Returns:
- true if the if the image with the orderLabel is selected
-