Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICustomValueListMatchers<ValueType>

This interface describes custom expectation matchers for ValuePageElementLists.

It can be used for both positive and negative (.not) comparisons.

template

ValueType the type of the values handled by the list's elements' xxxValue functions

Type parameters

  • ValueType

Hierarchy

Index

Methods

toBeEmpty

  • toBeEmpty(): boolean

toBeEnabled

  • Checks if all of the PageElements managed by PageElementList are currently enabled.

    Parameters

    • Optional filterMask: ListFilterMask

      Can be used to skip the check for some or all managed PageElements.

    Returns boolean

toBeVisible

  • Checks if all of the PageElements managed by PageElementList are currently visible.

    Parameters

    • Optional filterMask: ListFilterMask

      Can be used to skip the check for some or all managed PageElements.

    Returns boolean

toContainDirectText

  • toContainDirectText(directText: string | string[]): boolean
  • Checks if all of the PageElements managed by PageElementList currently contain the expected direct text.

    A direct text is a text that resides on the level directly below the selected HTML element. It does not include any text of the HTML element's nested children HTML elements.

    Parameters

    • directText: string | string[]

      A single value (used for all managed PageElements) or an array of values with the expected contained direct text(s).

    Returns boolean

toContainText

  • toContainText(text: string | string[]): boolean
  • Checks if all of the PageElements managed by PageElementList currently contain the expected text.

    Parameters

    • text: string | string[]

      A single value (used for all managed PageElements) or an array of values with the expected contained text(s).

    Returns boolean

toContainValue

  • toContainValue(value: ValueType | ValueType[]): boolean
  • Checks if all of the ValuePageElements managed by ValuePageElementList currently contain the expected value.

    Parameters

    • value: ValueType | ValueType[]

      A single expected contained value (used for all managed ValuePageElements) or an array of expected contained values.

    Returns boolean

toEventuallyBeEmpty

  • Checks if the PageElementList eventually is empty within a specific timeout.

    Parameters

    • Optional opts: ITimeoutInterval

      Includes the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, PageElementList's default timeout is used. If no interval is specified, PageElementList's default interval is used.

    Returns boolean

toEventuallyBeEnabled

  • Checks if all of the PageElements managed by PageElementList eventually become enabled within a specific timeout.

    Parameters

    • Optional opts: ITimeout & IListFilterMask

      Includes a filterMask that can be used to skip the check for some or all managed PageElements and the timeout within which the condition is expected to be met.

      If no timeout is specified, PageElementList's default timeout is used.

    Returns boolean

toEventuallyBeVisible

  • Checks if all of the PageElements managed by PageElementList eventually become visible within a specific timeout.

    Parameters

    • Optional opts: ITimeout & IListFilterMask

      Includes a filterMask that can be used to skip the check for some or all managed PageElements and the timeout within which the condition is expected to be met.

      If no timeout is specified, PageElementList's default timeout is used.

    Returns boolean

toEventuallyContainDirectText

  • toEventuallyContainDirectText(directText: string | string[], opts?: ITimeoutInterval): boolean
  • Checks if all of the PageElements managed by PageElementList eventually contain the expected direct text within a specific timeout.

    A direct text is a text that resides on the level directly below the selected HTML element. It does not include any text of the HTML element's nested children HTML elements.

    Parameters

    • directText: string | string[]

      A single value (used for all managed PageElements) or an array of values with the expected contained direct text(s).

    • Optional opts: ITimeoutInterval

      Includes the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, PageElementList's default timeout is used. If no interval is specified, PageElementList's default interval is used.

    Returns boolean

toEventuallyContainText

  • toEventuallyContainText(text: string | string[], opts?: ITimeoutInterval): boolean
  • Checks if all of the PageElements managed by PageElementList eventually contain the expected text within a specific timeout.

    Parameters

    • text: string | string[]

      A single value (used for all managed PageElements) or an array of values with the expected contained text(s).

    • Optional opts: ITimeoutInterval

      Includes the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, PageElementList's default timeout is used. If no interval is specified, PageElementList's default interval is used.

    Returns boolean

toEventuallyContainValue

  • toEventuallyContainValue(value: ValueType | ValueType[], opts?: ITimeoutInterval): boolean
  • Checks if all of the ValuePageElements managed by ValuePageElementList eventually have the expected value within a specific timeout.

    Parameters

    • value: ValueType | ValueType[]

      A single expected contained value (used for all managed ValuePageElements) or an array of expected contained values.

    • Optional opts: ITimeoutInterval

      Includes the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, ValuePageElementList's default timeout is used. If no interval is specified, ValuePageElementList's default interval is used.

    Returns boolean

toEventuallyExist

  • toEventuallyExist(opts?: ITimeout & object): boolean
  • Checks if at least one of the PageElements managed by PageElementList eventually exists within a specific timeout.

    Parameters

    • Optional opts: ITimeout & object

      Includes a filterMask that, if set to false, will cause the existence check to be skipped and the matcher to return true. Furthermore opts also includes the timeout within which the condition is expected to be met.

      If no timeout is specified, PageElementList's default timeout is used.

    Returns boolean

toEventuallyHaveAnyDirectText

  • Checks if all of the PageElements managed by PageElementList eventually have any direct text within a specific timeout.

    A direct text is a text that resides on the level directly below the selected HTML element. It does not include any text of the HTML element's nested children HTML elements.

    Parameters

    • Optional opts: ITimeoutInterval & IListFilterMask

      Includes a filterMask that can be used to skip the check for some or all managed PageElements, the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, PageElementList's default timeout is used. If no interval is specified, PageElementList's default interval is used.

    Returns boolean

toEventuallyHaveAnyText

  • Checks if all of the PageElements managed by PageElementList eventually have any text within a specific timeout.

    Parameters

    • Optional opts: ITimeoutInterval & IListFilterMask

      Includes a filterMask that can be used to skip the check for some or all managed PageElements, the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, PageElementList's default timeout is used. If no interval is specified, PageElementList's default interval is used.

    Returns boolean

toEventuallyHaveAnyValue

  • Checks if all of the ValuePageElements managed by ValuePageElementList eventually have any value within a specific timeout.

    Parameters

    • Optional opts: ITimeoutInterval & IListFilterMask

      Includes a filterMask that can be used to skip the check for some or all managed ValuePageElements, the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, ValuePageElementList's default timeout is used. If no interval is specified, ValuePageElementList's default interval is used.

    Returns boolean

toEventuallyHaveDirectText

  • toEventuallyHaveDirectText(directText: string | string[], opts?: ITimeoutInterval): boolean
  • Checks if all of the PageElements managed by PageElementList eventually have the expected direct text within a specific timeout.

    A direct text is a text that resides on the level directly below the selected HTML element. It does not include any text of the HTML element's nested children HTML elements.

    Parameters

    • directText: string | string[]

      A single value (used for all managed PageElements) or an array of values with the expected direct text(s).

    • Optional opts: ITimeoutInterval

      Includes the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, PageElementList's default timeout is used. If no interval is specified, PageElementList's default interval is used.

    Returns boolean

toEventuallyHaveLength

  • Checks if the length of the PageElementList eventually has/not has/is less or is greater than the specified length within a specific timeout.

    Parameters

    • length: number

      the specified length which is compared to PageElementList's actual length

    • Optional opts: IPageElementListWaitLengthParams

      Includes the comparator that defines how to compare the actual length and the expected length of the list (equals, not equals, less than, greater than), the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, PageElementList's default timeout is used. If no interval is specified, PageElementList's default interval is used.

    Returns boolean

toEventuallyHaveText

  • toEventuallyHaveText(text: string | string[], opts?: ITimeoutInterval): boolean
  • Checks if all of the PageElements managed by PageElementList eventually have the expected text within a specific timeout.

    Parameters

    • text: string | string[]

      A single value (used for all managed PageElements) or an array of values with the expected text(s).

    • Optional opts: ITimeoutInterval

      Includes the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, PageElementList's default timeout is used. If no interval is specified, PageElementList's default interval is used.

    Returns boolean

toEventuallyHaveValue

  • toEventuallyHaveValue(value: ValueType | ValueType[], opts?: ITimeoutInterval): boolean
  • Checks if all of the ValuePageElements managed by ValuePageElementList eventually have the expected value within a specific timeout.

    Parameters

    • value: ValueType | ValueType[]

      A single expected value (used for all managed ValuePageElements) or an array of expected values.

    • Optional opts: ITimeoutInterval

      Includes the timeout within which the condition is expected to be met and the interval used to check it.

      If no timeout is specified, ValuePageElementList's default timeout is used. If no interval is specified, ValuePageElementList's default interval is used.

    Returns boolean

toExist

  • toExist(filterMask?: boolean): boolean
  • Checks if at least one of the PageElements managed by PageElementList currently exists.

    Parameters

    • Optional filterMask: boolean

      If set to false, the existence check will be skipped and the matcher will return true.

    Returns boolean

toHaveAnyDirectText

  • Checks if all of the PageElements managed by PageElementList currently have any direc text.

    A direct text is a text that resides on the level directly below the selected HTML element. It does not include any text of the HTML element's nested children HTML elements.

    Parameters

    • Optional filterMask: ListFilterMask

      Can be used to skip the check for some or all managed PageElements.

    Returns boolean

toHaveAnyText

  • Checks if all of the PageElements managed by PageElementList currently have any text.

    Parameters

    • Optional filterMask: ListFilterMask

      Can be used to skip the check for some or all managed PageElements.

    Returns boolean

toHaveAnyValue

  • Checks if all of the ValuePageElements managed by ValuePageElementList currently have any value.

    Parameters

    • Optional filterMask: ListFilterMask

      Can be used to skip the check for some or all managed ValuePageElements.

    Returns boolean

toHaveDirectText

  • toHaveDirectText(directText: string | string[]): boolean
  • Checks if all of the PageElements managed by PageElementList currently have the expected direct text.

    A direct text is a text that resides on the level directly below the selected HTML element. It does not include any text of the HTML element's nested children HTML elements.

    Parameters

    • directText: string | string[]

      A single value (used for all managed PageElements) or an array of values with the expected direct text(s).

    Returns boolean

toHaveLength

  • toHaveLength(length: number, opts?: Comparator): boolean
  • Checks if the length of the PageElementList currently has/not has/is less or is greater than the specified length.

    Parameters

    • length: number

      the specified length which is compared to PageElementList's actual length

    • Optional opts: Comparator

      A comparator that defines how to compare the actual length and the expected length of the list (equals, not equals, less than, greater than).

    Returns boolean

toHaveText

  • toHaveText(text: string | string[]): boolean
  • Checks if all of the PageElements managed by PageElementList currently have the expected text.

    Parameters

    • text: string | string[]

      A single value (used for all managed PageElements) or an array of values with the expected text(s).

    Returns boolean

toHaveValue

  • toHaveValue(value: ValueType | ValueType[]): boolean
  • Checks if all of the ValuePageElements managed by ValuePageElementList currently have the expected value.

    Parameters

    • value: ValueType | ValueType[]

      A single expected value (used for all managed PageElements) or an array of expected values.

    Returns boolean

Generated using TypeDoc