Ejemplo n.º 1
0
  @Test
  public void testCustomStyleShouldStayAfterMenuSelect() {
    openTestURL();

    $(ButtonElement.class).caption("Add styles").first().click();

    MenuBarElement menu = $(MenuBarElement.class).first();
    List<WebElement> elements = menu.findElements(By.className("custom-menu-item"));
    Assert.assertEquals(2, elements.size());

    menu.clickItem("first");
    menu.clickItem("second");
    elements = menu.findElements(By.className("custom-menu-item"));
    Assert.assertEquals(2, elements.size());
  }
Ejemplo n.º 2
0
 private WebElement getTooltipContainerElement() {
   return getDriver().findElement(By.className("v-tooltip"));
 }
Ejemplo n.º 3
0
 @Override
 public String getCaption() {
   WebElement captElem = findElement(By.className("v-button-caption"));
   return captElem.getText();
 }
 private List<WebElement> getVisibleEvents(WebElement dayWithEvents) {
   return dayWithEvents.findElements(By.className("v-calendar-event"));
 }
 private WebElement toggleExpandEvents(WebElement dayWithEvents) {
   return dayWithEvents.findElement(By.className("v-calendar-bottom-spacer"));
 }