externalPlaywrightPage
Hierarchy
- Page<playwright.Locator>
- PlaywrightPage
Index
Constructors
Properties
Methods
Constructors
externalconstructor
Parameters
externalsession: PlaywrightBrowsingSession
externalpage: Page
externaloptions: PlaywrightOptions
externalpageId: CorrelationId
Returns PlaywrightPage
Properties
externalreadonlyid
Methods
staticexternalcurrent
Returns QuestionAdapter<PlaywrightPage>
externalcreatePageElement
Parameters
externalnativeElement: Locator
Returns PageElement<Locator>
externallocate
Parameters
externalselector: Selector
Returns PageElement<Locator>
externallocateAll
Parameters
externalselector: Selector
Returns PageElements<Locator>
externalnavigateTo
Parameters
externaldestination: string
Returns Promise<void>
externalnavigateBack
Returns Promise<void>
externalnavigateForward
Returns Promise<void>
externalreload
Returns Promise<void>
externalsendKeys
Parameters
externalkeys: (string | Key)[]
Returns Promise<void>
externalexecuteScript
Type parameters
- Result
- InnerArguments: any[]
Parameters
externalscript: string | (...parameters: InnerArguments) => Result
externalrest...args: InnerArguments
Returns Promise<Result>
externalexecuteAsyncScript
Type parameters
- Result
- InnerArguments: any[]
Parameters
externalscript: string | (...args: [...parameters: InnerArguments[], callback: (result: Result) => void]) => void
externalrest...args: InnerArguments
Returns Promise<Result>
externallastScriptExecutionResult
Type parameters
- Result = any
Returns Result
externaltakeScreenshot
Returns Promise<string>
externalcookie
Parameters
externalname: string
Returns Promise<Cookie>
externalsetCookie
Parameters
externalcookieData: CookieData
Returns Promise<void>
externaldeleteAllCookies
Returns Promise<void>
externaltitle
Returns Promise<string>
externalname
Returns Promise<string>
externalurl
Returns Promise<URL>
externalviewportSize
Returns Promise<{ width: number; height: number }>
externalsetViewportSize
Parameters
externalsize: { width: number; height: number }
externalwidth: number
externalheight: number
Returns Promise<void>
externalclose
Returns Promise<void>
externalcloseOthers
Returns Promise<void>
externalisPresent
Returns Promise<boolean>
externalnativePage
Returns Promise<Page>
externalswitchTo
Switches the current browsing context to the given page and returns an object that allows the caller to switch back to the previous context when needed.
Learn more
Returns Promise<SwitchableOrigin>
externalmodalDialog
Returns the
ModalDialogHandler
for the currentPage
.Returns ModalDialogHandler
externaltoString
Returns a description of this Page and its ID.
Returns string
Playwright-specific implementation of
Page
.