Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to automate Drag and Drop functionality in Selenium webdriver

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.00k
    Comment on it

    The following code should be used:

    1. WebElement draggable = driver.findElement(By.xpath("//Give the xpath"));
    2. WebElement droppable = driver.findElement(By.xpath("//Give the xpath"));
    3.  
    4. Actions action = new Actions(driver);
    5. action.dragAndDrop(draggable, droppable).perform();

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: