Testim Documentation

Welcome to the Testim documentation. You'll find comprehensive guides to help you get started quickly, example code snippets, and tips for being more productive. You will also find details about advanced features that allow you to customize Testim to fit your environment or special testing conditions. Don't worry, we'll support you if you get stuck. Let's jump right in!

Guides    Changelog

drag(draggedElementSelector, dragPath)

Dragged the given element alongside the given x/y path.

Beta Danger: This method is only supported in certain scenarios because of the selenium API limitations. It is expected to be fully working in the non-beta release.

  • draggedElementSelector {string | TDKStepLocator} a CSS selector or smart locator for the element being dragged.
  • dragPath: {array[{x:number, y:number}]} an array of x,y pairs to drag the element through - absolute on the screen.
  • returns: Promise which fulfills when the element matching draggedElementSelector has been dragged through the given path
  await drag('.item:active', [{x: 30, y: 50}, {x: 30, y: 60}]);

Updated 26 days ago

drag(draggedElementSelector, dragPath)


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.