DragandDrop is not working

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

DragandDrop is not working

Sailakshmi Pernamitta
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
                                 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAC17kCndZtLGjHFHyp4nNH0wrRY4tzM3sC8CF-kQmBas%2B4q%3DMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: DragandDrop is not working

Vikram
Hi,

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



Regards,
Vikram

On Friday, June 29, 2018 at 6:02:47 AM UTC+2, Sailakshmi Pernamitta wrote:
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
                                 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/63775e3d-6a1b-48fd-b401-7df077242d3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.