Package org.openqa.selenium.interactions

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


  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

  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

  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

  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

  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

        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

  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

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.