Pomeranian development reference / core/src/page-object / PageObject / with
Method: with()
staticwith<C,Added>(this, ...capabilities):Compose<C,Added>
Defined in: packages/core/src/page-object.ts:78
Apply capabilities left to right through genuine subclass construction. Each factory receives the preceding constructor; the receiver stays unchanged. Name the returned class before using create or rootFixture.
Type Parameters
C
C extends Constructor<PageObject<UnboundRoot>>
Added
Added extends readonly unknown[]
Parameters
this
C
capabilities
...Capabilities<C, Added>
Returns
Compose<C, Added>
Since
Available since @pomeranian/core@Unreleased
Context
Owner: PageObject.
Owner type parameters
Root
Root extends UnboundRoot = UnboundRoot
Unreleased core API: @pomeranian/core implementation from main; no npm release is implied.