Skip to content

docs(pom): create() falls back to BasePageObject, not any - #184

Open
Goran Gajic (gorangajic) wants to merge 1 commit into
mainfrom
goran/unruffled-wing-322a2c
Open

docs(pom): create() falls back to BasePageObject, not any#184
Goran Gajic (gorangajic) wants to merge 1 commit into
mainfrom
goran/unruffled-wing-322a2c

Conversation

@gorangajic

Copy link
Copy Markdown
Contributor

The POM docs said an unregistered page name makes this.create("X") return any. It returns BasePageObject — the library's fallback overload defaults to it, and the type tests assert it. Anyone reading the docs would expect no type checking at all on those calls, when they actually get the base class.

  • The API reference now says an unlisted name comes back as BasePageObject, and explains why: the name is just a string, so nothing tells TypeScript which class it is.
  • The troubleshooting entry is retitled "this.create("X") Returns BasePageObject Instead Of X" and says the methods you're missing are the ones on your own class. Nothing linked to the old anchor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
qawolf 🟢 Ready View Preview Aug 4, 2026, 8:14 AM

@JohnGluck

Copy link
Copy Markdown
Collaborator

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants