Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium IDE click and drag

I am using the Selenium IDE extension for testing webpages in FireFox and I was able to find out how to perform almost every command that I need to automate testing for my webpage.

Unfortunately I was not able to find out how to do this through the list of commands that you can manually enter into the queue of Selenium IDE.

I was wondering if anyone knew how to do this in the Firefox extension. Thanks!

like image 817
user3261832 Avatar asked Mar 20 '23 13:03

user3261832


1 Answers

You can use dragAndDropToObject command which locates the target element and drags it to the centre of the destination element.

dragAndDropToObject
target: locator of the element to drag
value: locator of the destination element

There is also a dragAndDrop command which drags the element by specified amount of pixels and drop it.

like image 145
pwolak Avatar answered Apr 01 '23 21:04

pwolak