title: How to perform drag drop in selenium grid
body: <p>I  was installed selenium grid successfully but not able to perform drag drop operation in selenium grid. if i run the code in testng it is working as expected, bu for grid it fail i learning selenium grid so unable to fix this issue, </p>
  
  <p>jar: selenium-server-standalone-2.45.0.jar</p>
  
  <p>Selenium JAR: All jar from "selenium-2.45.0" (latest)</p>
  
  <p><strong><em>CODE:</em></strong></p>
  
  <pre><code>public class DragdropElements {WebDriver driver;
  String nodeURL;
  @BeforeTest
  public void draganddrop() throws MalformedURLException
  {
      // driver = new FirefoxDriver();
      System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.Jdk14Logger");
      nodeURL = "http://localhost:4444/wd/hub";
      DesiredCapabilities cap = new DesiredCapabilities();
      cap.setBrowserName("firefox");
  /// cap.setVersion("31.0");
      //cap.setPlatform(Platform.VISTA);
   driver = new RemoteWebDriver(new URL(nodeURL),cap);
      driver.get("http://only-testing-blog.blogspot.in/2014/09/drag-and-drop.html");
  }
  
  @Test
  public void DragdropElements1() throws InterruptedException   
  {
  WebElement DragFrom = driver.findElement(By.xpath("//*[@id='dragdiv']"));
  WebElement DragTo = driver.findElement(By.xpath("//*[@id='dropdiv']"));
  
      Actions builder = new Actions(driver);
      Action dragAndDrop3 =  builder.dragAndDrop(DragFrom, DragTo).build();
      dragAndDrop3.perform();
  
      String Texttocompare = driver.findElement(By.xpath("//*[@id='Blog1']/div[1]/div/div/div/div[1]/h3")).getText();
      System.out.println(""+Texttocompare);
  Assert.assertEquals(Texttocompare, "Drag and Drop");
  }
  }
  </code></pre>
  
  <p><strong><em>Exception:</em></strong></p>
  
  <blockquote>
    <p>java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebDriver cannot be cast to org.openqa.selenium.interactions.HasInputDevices
      at org.openqa.selenium.interactions.Actions.(Actions.java:41)
      at qa.DragdropElements.DragdropElements1(DragdropElements.java:45)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</p>
  </blockquote>