externalWebdriverIOPage
Hierarchy
- Page<WebdriverIO.Element>
- WebdriverIOPage
Index
Constructors
Properties
Methods
Constructors
externalconstructor
Parameters
externalsession: WebdriverIOBrowsingSession
externalbrowser: Browser
externalmodalDialogHandler: ModalDialogHandler
externalerrorHandler: WebdriverIOErrorHandler
externalpageId: CorrelationId
Returns WebdriverIOPage
Properties
externalreadonlyid
Methods
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
externalcreatePageElement
Parameters
externalnativeElement: Element
Returns PageElement<Element>
externallocate
Parameters
externalselector: Selector
Returns PageElement<Element>
externallocateAll
Parameters
externalselector: Selector
Returns PageElements<Element>
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
- Parameters: any[]
Parameters
externalscript: string | (...args: [...parameters: Parameters[], callback: (result: Result) => void]) => void
externalrest...args: Parameters
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>
WebdriverIO-specific implementation of
Page
.