Is it possible to simulate the dragging of cassettes and phantoms, as in selenium?

I am trying to simulate a drag and drop event that is executed using jQuery on my site. Manual execution of β€œdrag and drop” using native JQuery β€œworks”, but after the form where the drag event is located is sent, nothing happens because there are listener events attached to the drag and drop events, and these listeners are not activated my "manual" movements. I am looking for something similar to Testing jQuery Drag and Drop and Droppable with Selenium .

This is an example of code that works only visually, but does not call drag & drop event handlers:

// "Simulate" drag&drop casper.evaluate(function() { det = jQuery("table#draggableview_secondary_touts_block_order_1 tbody tr").last().detach(); jQuery("table#draggableview_secondary_touts_block_order_1 tbody").prepend(det); jQuery("form#draggableviews-view-draggabletable-form-secondary-touts-block-order-homepage").submit(); }); 
+6
source share
1 answer

You can fire events directly as shown here: https://ghostinspector.com/blog/simulate-drag-and-drop-javascript-casperjs/

Does this fit your goals or do you need events triggered at a higher level?

0
source

Source: https://habr.com/ru/post/925882/


All Articles