DragandDrop is not working

42 views
Skip to first unread message

Sailakshmi Pernamitta

unread,
Jun 29, 2018, 12:02:47 AM6/29/18
to Selenium Users
Hi All,

My All Actions class methods like (moveToElement,relaese,clickandhold etc.) working fine for htmal DOM.but same code does not working for reactjs
DoM.Tried Multiiple ways..

Please help, it's urgent.



My code is below

WebElement From = e_driver.findElement(By.xpath("(//div[contains(@id,'order_')][2]"));
System.out.println(From.getText());
                                  WebElement To=e_driver.findElement(By.xpath("(//div[contains(@id,'trips')])/div/div/div/div/div"));
                                 
 System.out.println(To.getText());
Actions act = new Actions(driver);
                               System.out.println("Just wake up..");
                                  (new Actions(driver)).dragAndDrop(From, To).moveToElement(From, 1, 0).release(To).build().perform();
                                  //(new Actions(driver)).clickAndHold(From).moveToElement(From, 1, 0).release(To).build().perform();

Thanks
Sailakshmi
                                 

Vikram

unread,
Jul 3, 2018, 5:34:23 AM7/3/18
to Selenium Users
Hi,

You can refer to below code, as dragAndDrop method doesn't work in your scanario



Regards,
Vikram
Reply all
Reply to author
Forward
0 new messages