Endtest

Endtest

›Web Tests

Web Tests

  • How to create Web Tests
  • Finding elements in Web Applications
  • How to execute Web Tests
  • Assertions for Web Tests
  • IF Statements for Web Tests
  • Web Applications with restricted access
  • How to test in iframes
  • How to test in multiple tabs
  • How to test File Uploads
  • How to test File Downloads
  • How to test Emails
  • How to test PDF files
  • How to test Chrome Extensions
  • Dealing with reCAPTCHA
  • Dealing with Dynamic Locators
  • Dealing with Canvas Elements
  • Performing a Drag and Drop
  • Execute JavaScript
  • Testing WebRTC Applications
  • How to scroll in Web Tests
  • How to test Checkboxes
  • How to test Dropdowns
  • Dealing with Sessions
  • Web Crawler
  • Export Web Tests
  • Migrating from Selenium

Mobile Tests

  • How to create Mobile Tests
  • Finding elements in Mobile Applications
  • How to execute Mobile Tests
  • Assertions for Mobile Tests
  • IF Statements for Mobile Tests
  • How to scroll in Mobile Tests
  • Performing Complex Gestures

Advanced

  • Variables
  • Waits
  • Endtest API
  • Scheduler
  • Drive
  • Adding Collaborators
  • Computer Vision
  • Importing Test Cases
  • Using Loops
  • Data-driven Testing
  • Send API Requests
  • Read SMS
  • Execute SQL queries
  • Self-Healing Tests
  • Email Notifications
  • Slack Notifications
  • PagerDuty Notifications
  • Webhook Notifications
  • Automatic Backup
  • Advanced Settings
  • Multiple environments
  • How to stop a test
  • Utilities
  • Utilities API
  • Team
  • On-Premises

Integrations

  • Atlassian Jira
  • Slack
  • PagerDuty
  • Microsoft Teams
  • Mattermost
  • Jenkins
  • GitHub
  • Azure DevOps
  • GitLab
  • TeamCity
  • CircleCI
  • TravisCI
  • Bitbucket
  • Heroku
  • Bamboo Server
  • Test Case Management
  • SSO
  • BrowserStack
  • Sauce Labs

Performing a Drag and Drop

Introduction

There are 3 types of Drag and Drop operations that can be performed in Endtest:

1. Drag an element to another element.

2. Drag an element by a certain offset.

3. Drag a target by a certain offset.

1. Drag an element to another element.

This is a complex action that requires two elements to be identified:

  1. The element to be dragged
  2. The destination element

Declare the Drag Element action and the Drop on Target action with Set Advanced Action option in 2 separate steps.

And then you need to execute those actions with the Execute Advanced Actions Sequence option.

endtest drag and drop

The Web Tests are configured by default to use JavaScript to perform the Drag and Drop.

The action works for both JavaScript Drag and Drop and HTML5 Drag and Drop,

And it works on all browsers.

But you can also configure your test to use WebDriver Drag and Drop from the Advanced Settings.

2. Drag an element by a certain offset.

This operation can be performed by using the Move Element by Offset method from the Miscellaneous action.

You have to provide the locator for the element which will be dragged and the offset.

endtest drag by offset

3. Drag a target by a certain offset.

This operation can be performed by using the Move Target by Offset method from the Miscellaneous action.

It's useful for situations where you need to start the drag operation by clicking and holding on a certain point from the element that you want to drag.

You have to provide the locator and the offset for the element which will be dragged and the offset for the destination.

endtest drag target by offset

← Dealing with Canvas ElementsExecute JavaScript →
  • Introduction
  • 1. Drag an element to another element.
  • 2. Drag an element by a certain offset.
  • 3. Drag a target by a certain offset.
Get started for Free!
© Endtest Inc.