Closed Bug 1866784 Opened 1 year ago Closed 1 year ago

moveTo when using geckodriver doesn't work if called on 0, 0

Categories

(Testing :: geckodriver, defect)

Firefox 120
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1850148

People

(Reporter: nikhakerlab, Unassigned)

Details

Attachments

(1 file)

Attached file hover-test.html

Steps to reproduce:

  1. Create session in geckodriver:
curl --location 'http://localhost:4444/session' \
--data '{"capabilities":{"alwaysMatch":{"browserName":"firefox"},"firstMatch":[{}]},"desiredCapabilities":{"browserName":"firefox"}}'
  1. Open the html page attached to this issue from step 1
  2. Now, try manually hovering over different cells. Then try to set pointer to 0,0:
curl --location 'http://localhost:4444/session/c2d9e552-8888-4589-a56a-7e9c6c54bc9a/actions' \
--data '{
    "actions": [
        {
            "id": "action2",
            "type": "pointer",
            "parameters": {
                "pointerType": "mouse"
            },
            "actions": [
                {
                    "type": "pointerMove",
                    "button": 0,
                    "width": 0,
                    "height": 0,
                    "pressure": 0,
                    "tangentialPressure": 0,
                    "tiltX": 0,
                    "tiltY": 0,
                    "twist": 0,
                    "altitudeAngle": 0,
                    "azimuthAngle": 0,
                    "x": 0,
                    "y": 0,
                    "duration": 100,
                    "origin": "viewport"
                }
            ]
        }
    ]
}'

Try different x/y coords and mix requests with manual hovering

Actual results:

Sometimes the request to move pointer to 0,0 is successful, sometimes nothing happens and pointer stays where it was. The behaviour is inconsistent.

Expected results:

The pointer consistently moves to 0,0 after each curl request. It does so in chrome.

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core
Component: Layout → geckodriver
Product: Core → Testing

This is most likely a dupe of bug 1850148.

nikhakerlab would you mind attaching a trace log from geckodriver that show-cases that? I assume that in the case when it does not work you freshly created the action chain so that the mouse pointer internally is already at the position (0, 0). As such no pointer move will be executed. Chrome is currently doing that wrong and will also change its behavior.

Flags: needinfo?(nikhakerlab)

No further reply from reporter. As such I'm going to assume it's indeed a dupe of bug 1850148.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1850148
Flags: needinfo?(nikhakerlab)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: