w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
679 stars 194 forks source link

Element Click does not handle situation where the element has no container #1717

Open AtkinsSJ opened 1 year ago

AtkinsSJ commented 1 year ago

Getting the container can return undefined (if the element is an <option> without a valid parent), however the algorithm here assumes that it always returns a node which can have events fired on. For example:

  1. Scroll into view the element’s container.

  2. Let parent node be the element’s container.

  3. Fire a mouseOver event at parent node.

Maybe this issue does not come up in practice, but it feels like it should be handled somehow.