Unable to perform Drag and Drop using selenium WebDriver -
i trying perform draganddrop functionality. tried draganddrop
, clickandhold
also. able drag object destination, after object comes source position. when tried clickandhold
object dragged destination location, when released clickandhold
object again came old source location. tried below code well.
builder.clickandhold(source).movetoelement(destination).release(destination).build().perform(); builder.draganddrop(source, destination).build().perform();
how can handle issue ???
i have same issue.in order give show,i this:
builder.clickandhold(source).build().perform(); for(int i=0;i<size;i++) { builder.movetoelement(source,xoffset*i,yoffset).build().perform();//builder.movetoelement(destination,xoffset,yoffset*i).build().perform(); } builder.release(target).build.perform();
the hope can you.
Comments
Post a Comment