Skip to content

Update selenium & spock - #338

Merged
jonnybot0 merged 4 commits into
masterfrom
update-selenium-spock
Sep 30, 2026
Merged

jonnybot0 merged 4 commits into
masterfrom
update-selenium-spock

Conversation

@jonnybot0

Copy link
Copy Markdown
Contributor

This should address the concern behind #322, as well as get us up to date for a final Groovy 4 release before moving on to Groovy 5 (and then, soon enough, 6).

Selenium 4.45 (PR #17530) switched the Java bindings' isDisplayed atom
from the old Closure bot.dom.isShown to a new TypeScript
is-displayed.ts. The Java bindings have always run this atom via
executeScript for W3C sessions, so only the atom's rules changed.

Both atoms say a zero-size element is displayed only if a child has
positive size or is a text node. The rule for text nodes changed:

- Old atom: any text node counts, including whitespace.
- New atom: a whitespace-only text node that contains a newline or tab
  does not count.

This required us to add some content to our sample paragraphs for them
to behave as expected for this test.
@jonnybot0 jonnybot0 changed the title Update selenium spock Update selenium & spock Sep 30, 2026
@jonnybot0
jonnybot0 merged commit a466792 into master Sep 30, 2026
21 checks passed
@jonnybot0
jonnybot0 deleted the update-selenium-spock branch September 30, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant