Note that there are some explanatory texts on larger screens.

plurals
  1. POselenium dragAndDrop not dragging and dropping, though selector seems OK
    primarykey
    data
    text
    <p>I'm trying to use dragAndDrop in the Firefox selenium IDE but it's not working.</p> <p>I'm a big fan of selenium but this problem has been driving me crazy for the last day.</p> <p>I have a dragAndDrop test:</p> <pre><code>dragAndDrop //div[contains(text(),"Lori F.")]/../../ 0,160 </code></pre> <p>but it doesn't do the drag and drop. I have seen it work a couple of times but not sure why / why not now. Seems to sometimes work and sometimes not. </p> <p>The selector itself DOES works when I click on the IDE [find] button. It highlights the <code>DIV</code> I am trying to move. So this is not the 'usual' problem I have in selenium of not actually being able to select the object with the right xpath.</p> <p>The HTML it is going against is:</p> <pre><code>&lt;div class="fc-event-inner fc-event-skin" style="background-color: yellow;"&gt; &lt;div class="fc-event-head fc-event-skin"&gt;&lt;/div&gt; &lt;div class=""&gt; &lt;div class="fc-event-title"&gt; Lori F., Marshal H., Chris W., Kenna T. &lt;/div&gt; &lt;/div&gt; &lt;div class="fc-event-bg"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>When that actual step tries to run, the browser does actually 'flash' the object, indicating that it's able to select it via the path OK, but the drag and drop doesn't happen.</p> <p>I have tried dragAndDropToObject, using a div, but this didn't work because the DIV itself needs an x,y coordinate in order to 'land' on the right spot.</p> <p>Two problems I have found [this may help other people] - and eliminated - were that 1) zooming in/out on the screen messed up the x,y coordinate for the drop, so I stopped doing that and 2) Using the element inspector in firefox seemed to also stop it working. So I believe I've eliminated both of these as potential causes.</p> <p>Being able to test drag-and-drop is pretty important as many applications are now taking various ajax routes with this kinda stuff so being able to test it is key!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload