Skip to main content

WebdriverIOPageElement

WebdriverIO-specific implementation of PageElement.

Hierarchy

  • PageElement<WebdriverIO.Element>
    • WebdriverIOPageElement

Index

Constructors

constructor

  • Parameters

    • locator: Locator<Element, any>

    Returns WebdriverIOPageElement

Properties

readonlylocator

locator: Locator<Element, any>

Methods

nativeElement

  • nativeElement(): Promise<Element>
  • An โ€œescape hatchโ€ providing access to the integration tool-specific implementation of a Web element.


    Returns Promise<Element>

toString

  • toString(): string
  • Returns string

of

closestTo

clearValue

  • clearValue(): Promise<void>
  • Returns Promise<void>

click

  • click(): Promise<void>
  • Returns Promise<void>

doubleClick

  • doubleClick(): Promise<void>
  • Returns Promise<void>

enterValue

  • enterValue(value: string | number | (string | number)[]): Promise<void>
  • Parameters

    • value: string | number | (string | number)[]

    Returns Promise<void>

scrollIntoView

  • scrollIntoView(): Promise<void>
  • Returns Promise<void>

hoverOver

  • hoverOver(): Promise<void>
  • Returns Promise<void>

rightClick

  • rightClick(): Promise<void>
  • Returns Promise<void>

selectOptions

  • selectOptions(...options: SelectOption[]): Promise<void>
  • Parameters

    • rest...options: SelectOption[]

    Returns Promise<void>

selectedOptions

  • selectedOptions(): Promise<SelectOption[]>
  • Returns Promise<SelectOption[]>

attribute

  • attribute(name: string): Promise<string>
  • Parameters

    • name: string

    Returns Promise<string>

text

  • text(): Promise<string>
  • Returns Promise<string>

value

  • value(): Promise<string>
  • Returns Promise<string>

switchTo

  • switchTo(): Promise<SwitchableOrigin>
  • Returns Promise<SwitchableOrigin>

isActive

  • isActive(): Promise<boolean>
  • Returns Promise<boolean>

isClickable

  • isClickable(): Promise<boolean>
  • Returns Promise<boolean>

isEnabled

  • isEnabled(): Promise<boolean>
  • Returns Promise<boolean>

isPresent

  • isPresent(): Promise<boolean>
  • Returns Promise<boolean>

isSelected

  • isSelected(): Promise<boolean>
  • Returns Promise<boolean>

isVisible

  • isVisible(): Promise<boolean>
  • Returns Promise<boolean>