Skip to content

docs: fix getWait()/WaitEngine mismatch, document waitForNetworkIdle/waitForResponse - #87

Merged
shossain786 merged 1 commit into
masterfrom
docs/wait-engine-fixes
Sep 27, 2026
Merged

shossain786 merged 1 commit into
masterfrom
docs/wait-engine-fixes

Conversation

@shossain786

Copy link
Copy Markdown
Contributor

What

Three docs guides (wait-engine.md, base-page.md, migration/from-selenium-testng.md) called getWait().waitForVisible(...) etc., but BasePage/BaseTest never had a getWait() method — the real API is the static WaitEngine.waitForVisible(...), already used correctly in BasePage's own source. Every example in these three guides would have failed to compile as written.

getWait() genuinely exists on BaseJUnit5Test/BaseCucumberSteps (returns a plain WebDriverWait) — junit5.md/cucumber.md already describe that correctly and are untouched.

wait-engine.md also documented a getWait(int) timeout override that never existed anywhere in the codebase — replaced with the real per-call Duration overrides.

Also adds the missing Network section to wait-engine.md for waitForNetworkIdle()/waitForResponse() (v3.6.0, released but only in the changelog until now).

Verification

npm run build (docusaurus) succeeds; grep confirms no getWait() call remains in the three fixed files.

🤖 Generated with Claude Code

…Engine mismatch

wait-engine.md, base-page.md and migration/from-selenium-testng.md all
called getWait().waitForVisible(...) etc. — but BasePage/BaseTest (the
TestNG audience these guides target) never had a getWait() method.
The real API is the static WaitEngine.waitForVisible(...), already
used correctly in BasePage's own source. Every example in these three
guides would have failed to compile as written. (getWait() genuinely
exists on BaseJUnit5Test/BaseCucumberSteps, returning a plain
WebDriverWait — junit5.md and cucumber.md already describe that
correctly and are untouched.)

wait-engine.md also documented a getWait(int) timeout override that
never existed anywhere in the codebase; replaced with the real
per-call Duration overrides on waitForNetworkIdle/waitForResponse.

Adds the Network section to wait-engine.md for waitForNetworkIdle()/
waitForResponse() (v3.6.0).

Verified: npm run build (docusaurus) succeeds; grep confirms no
getWait() call remains in the three fixed files.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@shossain786
shossain786 merged commit 26fffec into master Sep 27, 2026
1 check passed
@shossain786
shossain786 deleted the docs/wait-engine-fixes branch September 27, 2026 11:06
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