w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
353 stars 39 forks source link

Implement capabilities for Drag n' Drop #487

Open jrandolf-2 opened 1 year ago

jrandolf-2 commented 1 year ago

Background

Currently, Drag n' Drop is not working on any implementation of WebDriver BiDi according to WPT tests.

Problem

When a drag is initiated by a WebDriver BiDi mouse action, all inputs get ignored (yes, even mouse up), which makes the test state invalid.

Solutions

There are a couple solutions to this.

Add a dragAndDrop capability to session.CapabilitiesRequest and session.NewResult

This would hint to clients whether a given WebDriver Bidi implementation supports drag n' drop. This would imply drag n' drop must be disabled in their browser.

Pros

Cons

Do nothing.

Pros

Cons