Package helper.SeleniumHelper

Examples of helper.SeleniumHelper.Node


  }

  @Test
  public void testChangeFontSize() {
    String nodeId = createNodeFromRoot();
    String stylePath = new Node(nodeId).style();

    String style = selenium.getAttribute(stylePath);
    Integer fontSizeBefore = getFontSize(style);
    assertNotNull(fontSizeBefore);
View Full Code Here


  }

  @Test
  public void testChangeFontWeight() {
    String nodeId = createNodeFromRoot();
    String stylePath = new Node(nodeId).text().style();

    String style = selenium.getAttribute(stylePath);
    String fontWeightBefore = getFontWeight(style);
    assertEquals("normal", fontWeightBefore);
View Full Code Here

  }

  @Test
  public void testChangeFontStyle() {
    String nodeId = createNodeFromRoot();
    String stylePath = new Node(nodeId).text().style();

    String style = selenium.getAttribute(stylePath);
    String fontStyleBefore = getFontStyle(style);
    assertEquals("normal", fontStyleBefore);
View Full Code Here

  }

  @Test
  public void testChangeFontUnderline() {
    String nodeId = createNodeFromRoot();
    String stylePath = new Node(nodeId).text().style();

    String style = selenium.getAttribute(stylePath);
    String fontUnderlineBefore = getTextDecoration(style);
    assertEquals("none", fontUnderlineBefore);
View Full Code Here

  }

  @Test
  public void testChangeNodeFontColor() {
    String nodeId = createNodeFromRoot();
    String stylePath = new Node(nodeId).text().style();

    String style = selenium.getAttribute(stylePath);
    String textColorBefore = getTextColor(style);

    // open and choose any color from color picker, close it
View Full Code Here

  public void testCreateNodeWithAddButton() {
    String nodeId = createNodeFromRoot();
    assertTrue(selenium.isElementPresent(nodeId));

    assertEquals("New Idea", selenium.getText(nodeId));
    assertTrue(selenium.isElementPresent(new Node(nodeId).text().selected()
        .get()));
  }
View Full Code Here

  @Test
  public void testDragAndDropNode() {
    String nodeId = createNodeFromRoot();

    Number nodePosLeft = selenium.getElementPositionLeft(nodeId);
    selenium.mouseOver(new Node(nodeId).text().get());
    selenium.mouseDown(new Node(nodeId).text().get());
    selenium.dragAndDrop(nodeId, "+200,+100");
    Number nodePosLeft2 = selenium.getElementPositionLeft(nodeId);
    assertEquals(200, nodePosLeft2.intValue() - nodePosLeft.intValue());
  }
View Full Code Here

TOP

Related Classes of helper.SeleniumHelper.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.