Skip to content

.moveTo() is not working with elementId only param #3484

@vinodreddy-bs

Description

@vinodreddy-bs

Description of the bug/issue

My tests were working fine with version <= v2.3.9 for the method moveTo() which accepts elementId as a param and offset as optional.

await browser.moveTo(elementId); // no offset is provided and it still works with above version

After the fix in v2.4.0 #3427 for #3404 issue, my tests started failing as offset params are mandatory here

await browser.moveTo(elementId); // no offset is provided and it started failing with "Invalid Parameters for moveTo Command"

Steps to reproduce

Run tests with moveTo() command with just elementId as param in versions v2.3.9 and v2.4.0

Nightwatch.js Version

2.4.0

Node Version

14.0.0

Browser

Chrome 107

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions