Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

mouseMove ignoring offset  #4970

@pbrain19

Description

@pbrain19

Bug report

  • Node Version: 10+
  • Protractor Version: 5.3.2
  • Angular Version: 1.6+
  • Browser(s): chrome
  • Operating System and Version Ubuntu

I got the following code

`

    const centerX = dimensions.width / 2;
    const centerY = dimensions.height / 2;

    return browser.actions()
        .mouseMove(startingPoint, {
            x: centerX + x, y: centerY - y
        })
        .click()
        .perform();

`

About 3 months ago this was working just fine. We recently did an update and it seems that the offset is completely ignored alltogether. The offsets are valid numbers. I having a hard time trying to understand where the change is happening but overall this is an issue that is now blocking our testing of a map where we draw squares. Do we know why the offset would be ignored?

On another note I tried to just give it an offset

`

    const centerX = dimensions.width / 2;
    const centerY = dimensions.height / 2;

    return browser.actions()
        .mouseMove({
            x: centerX + x, y: centerY - y
        })
        .click()
        .perform();

`

The above yields an error WebDriverError: unknown error: at least an element or offset should be set. I am a bit confused as I did pass an offset.

The last thing I will say is that the doc urls on your official sites are broken for alot of things. You can start by looking at the actions page for your API and try clicking anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions