Class ToolBarController

java.lang.Object
org.mycore.iview.tests.controller.WebDriverController
org.mycore.iview.tests.controller.ToolBarController

public class ToolBarController extends WebDriverController
Author:
Sebastian Röher (basti890)
  • Field Details

  • Constructor Details

    • ToolBarController

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

    • pressButton

      public void pressButton(String id)
      clicks the first element with class="btn" and data-id="id"
      Parameters:
      id -
    • clickElementById

      public void clickElementById(String id)
      clicks the first element with data-id="id"
      Parameters:
      id -
    • selectPictureWithOrder

      public void selectPictureWithOrder(String orderLabel)
      selects the first picture with the label orderLabel in the selectbox
      Parameters:
      orderLabel -
    • isImageSelected

      public boolean isImageSelected(String oderLabel)
      checks if the image with the orderLabel is selected
      Parameters:
      oderLabel -
      Returns:
      true if the if the image with the orderLabel is selected