Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICustomGroupMatchers<Content>

This interface describes custom expectation matchers for PageElementGroups.

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

template

Content the type of the content managed by the group

Type parameters

Hierarchy

Index

Methods

toBeEnabled

  • Checks if all of the PageNodes defined within the content of PageElementGroup are currently enabled.

    Parameters

    • Optional filterMask: GroupFilterMask<Content>

      Can be used to skip the check for some or all PageNodes defined within the content of PageElementGroup.

    Returns boolean

toBeVisible

  • Checks if all of the PageNodes defined within the content of PageElementGroup are currently visible.

    Parameters

    • Optional filterMask: GroupFilterMask<Content>

      Can be used to skip the check for some or all PageNodes defined within the content of PageElementGroup.

    Returns boolean

toContainDirectText

  • Checks if all of the PageNodes managed by PageElementGroup 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: ExtractTextStateChecker<Content>

      An object with the names of the corresponding PageNodes as keys and the expected contained direct texts as values.

    Returns boolean

toContainText

  • Checks if all of the PageNodes managed by PageElementGroup currently contain the expected text.

    Parameters

    • text: ExtractTextStateChecker<Content>

      An object with the names of the corresponding PageNodes as keys and the expected contained texts as values.

    Returns boolean

toEventuallyBeEnabled

  • Checks if all of the PageNodes defined within the content of PageElementGroup eventually become enabled within a specific timeout.

    Parameters

    • Optional opts: ITimeout & IGroupFilterMask<Content>

      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, PageElementGroup's default timeout is used.

    Returns boolean

toEventuallyBeVisible

  • Checks if all of the PageNodes defined within the content of PageElementGroup eventually become visible within a specific timeout.

    Parameters

    • Optional opts: ITimeout & IGroupFilterMask<Content>

      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, PageElementGroup's default timeout is used.

    Returns boolean

toEventuallyContainDirectText

  • Checks if all of the PageNodes defined within the content of PageElementGroup 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: ExtractTextStateChecker<Content>

      An object with the names of the corresponding PageNodes as keys and the expected contained direct texts as 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, PageElementGroup's default timeout is used. If no interval is specified, PageElementGroup's default interval is used.

    Returns boolean

toEventuallyContainText

  • Checks if all of the PageNodes defined within the content of PageElementGroup eventually contain the expected text within a specific timeout.

    Parameters

    • text: ExtractTextStateChecker<Content>

      An object with the names of the corresponding PageNodes as keys and the expected contained texts as 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, PageElementGroup's default timeout is used. If no interval is specified, PageElementGroup's default interval is used.

    Returns boolean

toEventuallyExist

  • Checks if all of the PageNodes defined within the content of PageElementGroup eventually exist within a specific timeout.

    Parameters

    • Optional opts: ITimeout & IGroupFilterMask<Content>

      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, PageElementGroup's default timeout is used.

    Returns boolean

toEventuallyHaveAnyDirectText

  • Checks if all of the PageNodes defined within the content of PageElementGroup 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 & IGroupFilterMask<Content>

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

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

    Returns boolean

toEventuallyHaveAnyText

  • Checks if all of the PageNodes defined within the content of PageElementGroup eventually have any text within a specific timeout.

    Parameters

    • Optional opts: ITimeoutInterval & IGroupFilterMask<Content>

      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, PageElementGroup's default timeout is used. If no interval is specified, PageElementGroup's default interval is used.

    Returns boolean

toEventuallyHaveDirectText

  • Checks if all of the PageNodes defined within the content of PageElementGroup 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: ExtractTextStateChecker<Content>

      An object with the names of the corresponding PageNodes as keys and the expected direct texts as 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, PageElementGroup's default timeout is used. If no interval is specified, PageElementGroup's default interval is used.

    Returns boolean

toEventuallyHaveText

  • Checks if all of the PageNodes defined within the content of PageElementGroup eventually have the expected text within a specific timeout.

    Parameters

    • text: ExtractTextStateChecker<Content>

      An object with the names of the corresponding PageNodes as keys and the expected texts as 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, PageElementGroup's default timeout is used. If no interval is specified, PageElementGroup's default interval is used.

    Returns boolean

toExist

  • Checks if all of the PageNodes defined within the content of PageElementGroup currently exist.

    Parameters

    • Optional filterMask: GroupFilterMask<Content>

      Can be used to skip the check for some or all PageNodes defined within the content of PageElementGroup.

    Returns boolean

toHaveAnyDirectText

  • Checks if all of the PageNodes managed by PageElementGroup currently have any 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

    • Optional filterMask: GroupFilterMask<Content>

      Can be used to skip the check for some or all PageNodes defined within the content of PageElementGroup.

    Returns boolean

toHaveAnyText

  • Checks if all of the PageNodes managed by PageElementGroup currently have any text.

    Parameters

    • Optional filterMask: GroupFilterMask<Content>

      Can be used to skip the check for some or all PageNodes defined within the content of PageElementGroup.

    Returns boolean

toHaveDirectText

  • Checks if all of the PageNodes managed by PageElementGroup 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: ExtractTextStateChecker<Content>

      An object with the names of the corresponding PageNodes as keys and the expected direct texts as values.

    Returns boolean

toHaveText

  • Checks if all of the PageNodes managed by PageElementGroup currently have the expected text.

    Parameters

    • text: ExtractTextStateChecker<Content>

      An object with the names of the corresponding PageNodes as keys and the expected texts as values.

    Returns boolean

Generated using TypeDoc