Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PageElementBaseCurrently<Store, PageElementType>

This class defines all currently functions of PageElementBase.

template

Store type of the PageNodeStore instance which can be used to retrieve/create PageNodes

template

PageElementType type of the PageElement for which PageElementBaseCurrently defines all currently functions

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Protected _node

_node: PageElementType

the PageNode for which PageNodeCurrently defines all currently functions

Accessors

element

  • get element(): Client<RawResult<Element>> & RawResult<Element>

not

  • get not(): __type

Methods

Protected _compareContains

  • _compareContains<T>(expected: T, actual: T): boolean
  • Checks if the actual value contains the expected value and writes both values into this._lastDiff.

    template

    T the type of both the actual and the expected value

    Type parameters

    • T

    Parameters

    • expected: T

      the value expected to be contained in the actual value

    • actual: T

      the actual value expected to contain the expected value

    Returns boolean

Protected _compareHas

  • _compareHas<T>(expected: T, actual: T): boolean
  • Checks if the actual value has/equals the expected value and writes both values into this._lastDiff.

    template

    T the type of both the actual and the expected value

    Type parameters

    • T

    Parameters

    • expected: T

      the expected value

    • actual: T

      the actual value

    Returns boolean

Protected _compareHasAny

  • _compareHasAny<T>(actual: T): boolean

Protected _withinTolerance

  • _withinTolerance(actual: number, expected: number, tolerance?: number): boolean
  • Checks if the actual value lies within a given tolerance of the expected value.

    Parameters

    • actual: number

      the actual value from the browser

    • expected: number

      the expected value or 0 if expected was smaller than 0

    • Optional tolerance: number

      the tolerance or 0 if tolerance was smaller than 0

    Returns boolean

Protected _writeLastDiff

  • _writeLastDiff<T>(actual: T, expected?: T): void

Generated using TypeDoc