webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

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

Open AtkinsSJ opened this issue 2 years ago • 0 comments

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.
  1. Let parent node be the element’s container.
  2. 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.

AtkinsSJ avatar Jan 26 '23 15:01 AtkinsSJ