gost-dom / gost-dom/browser

Warn on `click()` or similar on disconnected element

Open
#55 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
300
Forks
15
PR merge metrics
No merged PRs in 30d

Description

While e.g., Selenium generates an error if you try to call `click()` on a disconnected element, the browser doesn't.

However, in a test case, this scenario is _probably_ an issue in the test case, so the error might seem like a reasonable behavior. But when the goal is to be DOM compatible, an error _is not_ a reasonable behavior.

But logging a warning is!

Contributor guide

Open the contributing guide

Research direction

Start by locating the click() handling and the code that determines whether an element is connected. Review existing tests for interactions with disconnected elements, then add coverage for the requested behavior. Done means click() and similar interactions log a warning without raising an error when the element is disconnected.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.