element
element copied to clipboard
Mouse not importing correctly: Error: Cannot read property 'move' of undefined
Describe the bug
I am trying to use the Mouse API and am finding that importing it using the following syntax:
import { Mouse } from '@flood/element'
and using it in my file load-tests.perf.ts
const signatureField = await b.findElement(By.css('[data-draggable-id="signature"'))
const sigLocation = await signatureField.location()
await Mouse.move(sigLocation.x, sigLocation.y)
await Mouse.down()
await Mouse.move(sigLocation.x + 500, sigLocation.y)
await Mouse.up()
produces the following error:
Error: Cannot read property 'move' of undefined
Expected behavior
I expected the named module import of Mouse via "@flood/element" to work.
Note: the docs do not show how to import this module. Is there a different way I should be importing Mouse from how I might import step, TestSettings and By?
Screenshots

Desktop (please complete the following information):
- OS: macOSX
- Node.js version: 14.14.0
- Version 1.3.9