Drag an element to the given position or destination element.

Usage

                    browser.element(selector).dragAndDrop(coordinates)
                

Example

export default {
  demoTest(browser: NightwatchAPI): void {
    browser.element('.section').dragAndDrop({ x: 100, y: 100 });
  },
  async demoTestAsync(browser: NightwatchAPI): Promise<void> {
    await browser.element('.section').dragAndDrop({ x: 0, y: 500 });
  }
}

Returns

Type description
ScopedWebElement