Examples of dragAndDrop()


Examples of org.openqa.selenium.interactions.Actions.dragAndDrop()

        browser.get(contextPath.toExternalForm() + "dnd.jsf");
       
        WebElement framework = browser.findElements(By.cssSelector(".ui-draggable")).get(0);

        Actions builder = new Actions(browser);
        final Action dragAndDrop = builder.dragAndDrop(framework, phpTarget).build();
        guardAjax(dragAndDrop).perform();

        Assert.assertEquals(1, phpTarget.findElements(By.cssSelector("td")).size());
    }
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions.dragAndDrop()

  public void move_to(Element other_element) {
    takeScreenshot();
    action("Moving element '" + this + "' to element '" + other_element + "'");
    Actions drag = new Actions(browser.driver());
    try {
      drag.dragAndDrop(_nativeWebElement(), other_element._nativeWebElement());
      action("Moved element '" + this + "' to element '" + other_element + "'");
    } catch (org.openqa.selenium.interactions.MoveTargetOutOfBoundsException mtoobe) {
      error("Cannot move element '" + this + "' to element '" + other_element + "', got org.openqa.selenium.interactions.MoveTargetOutOfBoundsException");
    }
    takeScreenshot();
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions.dragAndDrop()

  public void move_to(Element other_element) {
    takeScreenshot();
    action("Moving element '" + this + "' to element '" + other_element + "'");
    Actions drag = new Actions(browser.driver());
    try {
      drag.dragAndDrop(_nativeWebElement(), other_element._nativeWebElement());
      action("Moved element '" + this + "' to element '" + other_element + "'");
    } catch (org.openqa.selenium.interactions.MoveTargetOutOfBoundsException mtoobe) {
      error("Cannot move element '" + this + "' to element '" + other_element + "', got org.openqa.selenium.interactions.MoveTargetOutOfBoundsException");
    }
    takeScreenshot();
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions.dragAndDrop()

  public void move_to(Element other_element) {
    takeScreenshot();
    action("Moving element '" + this + "' to element '" + other_element + "'");
    Actions drag = new Actions(browser.driver());
    try {
      drag.dragAndDrop(_nativeWebElement(), other_element._nativeWebElement());
      action("Moved element '" + this + "' to element '" + other_element + "'");
    } catch (org.openqa.selenium.interactions.MoveTargetOutOfBoundsException mtoobe) {
      error("Cannot move element '" + this + "' to element '" + other_element + "', got org.openqa.selenium.interactions.MoveTargetOutOfBoundsException");
    }
    takeScreenshot();
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions.dragAndDrop()

  public void move_to(Element other_element) {
    takeScreenshot();
    action("Moving element '" + this + "' to element '" + other_element + "'");
    Actions drag = new Actions(browser.driver());
    try {
      drag.dragAndDrop(_nativeWebElement(), other_element._nativeWebElement());
      action("Moved element '" + this + "' to element '" + other_element + "'");
    } catch (org.openqa.selenium.interactions.MoveTargetOutOfBoundsException mtoobe) {
      error("Cannot move element '" + this + "' to element '" + other_element + "', got org.openqa.selenium.interactions.MoveTargetOutOfBoundsException");
    }
    takeScreenshot();
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions.dragAndDrop()

  public void move_to(Element other_element) {
    takeScreenshot();
    action("Moving element '" + this + "' to element '" + other_element + "'");
    Actions drag = new Actions(browser.driver());
    try {
      drag.dragAndDrop(_nativeWebElement(), other_element._nativeWebElement());
      action("Moved element '" + this + "' to element '" + other_element + "'");
    } catch (org.openqa.selenium.interactions.MoveTargetOutOfBoundsException mtoobe) {
      error("Cannot move element '" + this + "' to element '" + other_element + "', got org.openqa.selenium.interactions.MoveTargetOutOfBoundsException");
    }
    takeScreenshot();
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions.dragAndDrop()

        browser.get(contextPath.toExternalForm() + "dnd.jsf");
       
        WebElement framework = browser.findElements(By.cssSelector(".ui-draggable")).get(0);

        Actions builder = new Actions(browser);
        final Action dragAndDrop = builder.dragAndDrop(framework, phpTarget).build();
        guardAjax(dragAndDrop).perform();

        Assert.assertEquals(1, phpTarget.findElements(By.cssSelector("td")).size());
    }
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions.dragAndDrop()

  public void move_to(Element other_element) {
    takeScreenshot();
    action("Moving element '" + this + "' to element '" + other_element + "'");
    Actions drag = new Actions(browser.driver());
    try {
      drag.dragAndDrop(_nativeWebElement(), other_element._nativeWebElement());
      action("Moved element '" + this + "' to element '" + other_element + "'");
    } catch (org.openqa.selenium.interactions.MoveTargetOutOfBoundsException mtoobe) {
      error("Cannot move element '" + this + "' to element '" + other_element + "', got org.openqa.selenium.interactions.MoveTargetOutOfBoundsException");
    }
    takeScreenshot();
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.dragAndDrop()

        content1.assertExpressionEquals("offsetWidth", 193);
        content1.assertExpressionEquals("offsetHeight", 300);
        content2.assertExpressionEquals("offsetWidth", 400);
        content2.assertExpressionEquals("offsetHeight", 200);

        splitter3.dragAndDrop(0, 100);
        content1.assertExpressionEquals("offsetWidth", 193);
        content1.assertExpressionEquals("offsetHeight", 300);
        content2.assertExpressionEquals("offsetWidth", 400);
        content2.assertExpressionEquals("offsetHeight", 100);
        splitter3.dragAndDrop(0, -200);
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.dragAndDrop()

        splitter3.dragAndDrop(0, 100);
        content1.assertExpressionEquals("offsetWidth", 193);
        content1.assertExpressionEquals("offsetHeight", 300);
        content2.assertExpressionEquals("offsetWidth", 400);
        content2.assertExpressionEquals("offsetHeight", 100);
        splitter3.dragAndDrop(0, -200);
        content1.assertExpressionEquals("offsetWidth", 193);
        content1.assertExpressionEquals("offsetHeight", 300);
        content2.assertExpressionEquals("offsetWidth", 400);
        content2.assertExpressionEquals("offsetHeight", 300);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.