From the course: Selenium Essential Training

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Drag and drop

Drag and drop

- [Instructor] Drag and drop can be great for things like moving images around a screen or cropping or resizing images. It can also be great to arrange various components on the screen such as moving virtual note cards around in columns. In this video, I'll demonstrate an example of dragging and dropping an image into a box. Let's start by opening up the exercise file for this video at 02_08 and then selecting the start directory. Once that project is open, I will go up to the top level menu and select Build and Build Project in order to install any necessary dependencies and make sure the project is built successfully, and then I'm ready to dive into the test. So like all the tests before, this starts by setting the location for the Chrome driver, creating a new instance of the Chrome driver, and navigating to a specific page in the test application, which is drag/drop. So then, after navigating to the drag/drop page,…

Contents