Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PageElementMapWait<Store, K, PageElementType, PageElementOpts, MapType>

This class defines all wait functions of PageElementMap.

template

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

template

K the key names of PageElementMap's $ accessor used to access the map's managed PageElements

template

PageElementType type of the PageElements managed by PageElementMap

template

PageElementOpts type of the opts parameter passed to the constructor function of the PageElements managed by PageElementMap

template

MapType type of the PageElementMap for which PageElementMapWait defines all wait functions

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Protected _node

_node: MapType

the PageNode for which PageNodeWait defines all wait functions

Accessors

not

  • get not(): object
  • returns the negated variants of PageElementMapWait's state check functions

    Returns object

    • containsDirectText: function
      • containsDirectText(directTexts: Partial<Record<K, string>>, opts?: ITimeoutInterval): MapType
      • Waits for the actual direct texts of all PageElements managed by PageElementMap not to contain the expected direct texts.

        Throws an error if the condition is not met 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

        • directTexts: Partial<Record<K, string>>

          the expected direct texts supposed not to be contained in the actual direct texts

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

        Returns MapType

        this (an instance of PageElementMap)

    • containsText: function
      • containsText(texts: Partial<Record<K, string>>, opts?: ITimeoutInterval): MapType
      • Waits for the actual texts of all PageElements managed by PageElementMap not to contain the expected texts.

        Throws an error if the condition is not met within a specific timeout.

        Parameters

        • texts: Partial<Record<K, string>>

          the expected texts supposed not to be contained in the actual texts

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

        Returns MapType

        this (an instance of PageElementMap)

    • exists: function
      • Waits for all PageElements managed by PageElementMap not to exist.

        Throws an error if the condition is not met within a specific timeout.

        Parameters

        • Default value opts: ITimeout & IMapFilterMask<K> = {}

          includes a filterMask which can be used to skip the invocation of the exists function for some or all managed PageElements and the timeout within which the condition is expected to be met

          If no timeout is specified, a PageElement's default timeout is used.

        Returns MapType

        this (an instance of PageElementMap)

    • hasAnyDirectText: function
      • Waits for all PageElements managed by PageElementMap not to have any direct text.

        Throws an error if the condition is not met 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

        • Default value opts: ITimeoutInterval & IMapFilterMask<K> = {}

          includes a filterMask which can be used to skip the invocation of the hasAnyDirectText function 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, a PageElement's default timeout is used. If no interval is specified, a PageElement's default interval is used.

        Returns MapType

        this (an instance of PageElementMap)

    • hasAnyText: function
      • Waits for all PageElements managed by PageElementMap not to have any text.

        Throws an error if the condition is not met within a specific timeout.

        Parameters

        • Default value opts: ITimeoutInterval & IMapFilterMask<K> = {}

          includes a filterMask which can be used to skip the invocation of the hasAnyText function 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, a PageElement's default timeout is used. If no interval is specified, a PageElement's default interval is used.

        Returns MapType

        this (an instance of PageElementMap)

    • hasDirectText: function
      • hasDirectText(directTexts: Partial<Record<K, string>>, opts?: ITimeoutInterval): MapType
      • Waits for the actual direct texts of all PageElements managed by PageElementMap not to equal the expected direct texts.

        Throws an error if the condition is not met 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

        • directTexts: Partial<Record<K, string>>

          the expected direct texts not supposed to equal the actual direct texts

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

        Returns MapType

        this (an instance of PageElementMap)

    • hasText: function
      • Waits for the actual texts of all PageElements managed by PageElementMap not to equal the expected texts.

        Throws an error if the condition is not met within a specific timeout.

        Parameters

        • texts: Partial<Record<K, string>>

          the expected texts supposed not to equal the actual texts

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

        Returns MapType

        this (an instance of PageElementMap)

    • isEnabled: function
      • Waits for all PageElements managed by PageElementMap not to be enabled.

        Throws an error if the condition is not met within a specific timeout.

        Parameters

        • Default value opts: ITimeout & IMapFilterMask<K> = {}

          includes a filterMask which can be used to skip the invocation of the isEnabled function for some or all managed PageElements and the timeout within which the condition is expected to be met

          If no timeout is specified, a PageElement's default timeout is used.

        Returns MapType

        this (an instance of PageElementMap)

    • isVisible: function
      • Waits for all PageElements managed by PageElementMap not to be visible.

        Throws an error if the condition is not met within a specific timeout.

        Parameters

        • Default value opts: ITimeout & IMapFilterMask<K> = {}

          includes a filterMask which can be used to skip the invocation of the isVisible function for some or all managed PageElements and the timeout within which the condition is expected to be met

          If no timeout is specified, a PageElement's default timeout is used.

        Returns MapType

        this (an instance of PageElementMap)

Methods

containsDirectText

  • containsDirectText(directTexts: Partial<Record<K, string>>, opts?: ITimeoutInterval): MapType
  • Waits for the actual direct texts of all PageElements managed by PageElementMap to contain the expected direct texts.

    Throws an error if the condition is not met 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

    • directTexts: Partial<Record<K, string>>

      the expected direct texts supposed to be contained in the actual direct texts

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

    Returns MapType

    this (an instance of PageElementMap)

containsText

  • containsText(texts: Partial<Record<K, string>>, opts?: ITimeoutInterval): MapType
  • Waits for the actual texts of all PageElements managed by PageElementMap to contain the expected texts.

    Throws an error if the condition is not met within a specific timeout.

    Parameters

    • texts: Partial<Record<K, string>>

      the expected texts supposed to be contained in the actual texts

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

    Returns MapType

    this (an instance of PageElementMap)

exists

  • Waits for all PageElements managed by PageElementMap to exist.

    Throws an error if the condition is not met within a specific timeout.

    Parameters

    • Default value opts: ITimeout & IMapFilterMask<K> = {}

      includes a filterMask which can be used to skip the invocation of the exists function for some or all managed PageElements and the timeout within which the condition is expected to be met

      If no timeout is specified, a PageElement's default timeout is used.

    Returns MapType

    this (an instance of PageElementMap)

hasAnyDirectText

  • Waits for all PageElements managed by PageElementMap to have any direct text.

    Throws an error if the condition is not met 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

    • Default value opts: ITimeoutInterval & IMapFilterMask<K> = {}

      includes a filterMask which can be used to skip the invocation of the hasAnyDirectText function 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, a PageElement's default timeout is used. If no interval is specified, a PageElement's default interval is used.

    Returns MapType

    this (an instance of PageElementMap)

hasAnyText

  • Waits for all PageElements managed by PageElementMap to have any text.

    Throws an error if the condition is not met within a specific timeout.

    Parameters

    • Default value opts: ITimeoutInterval & IMapFilterMask<K> = {}

      includes a filterMask which can be used to skip the invocation of the hasAnyText function 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, a PageElement's default timeout is used. If no interval is specified, a PageElement's default interval is used.

    Returns MapType

    this (an instance of PageElementMap)

hasDirectText

  • hasDirectText(directTexts: Partial<Record<K, string>>, opts?: ITimeoutInterval): MapType
  • Waits for the actual direct texts of all PageElements managed by PageElementMap to equal the expected direct texts.

    Throws an error if the condition is not met 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

    • directTexts: Partial<Record<K, string>>

      the expected direct texts supposed to equal the actual direct texts

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

    Returns MapType

    this (an instance of PageElementMap)

hasText

  • Waits for the actual texts of all PageElements managed by PageElementMap to equal the expected texts.

    Throws an error if the condition is not met within a specific timeout.

    Parameters

    • texts: Partial<Record<K, string>>

      the expected texts supposed to equal the actual texts

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

    Returns MapType

    this (an instance of PageElementMap)

isEnabled

  • Waits for all PageElements managed by PageElementMap to be enabled.

    Throws an error if the condition is not met within a specific timeout.

    Parameters

    • Default value opts: ITimeout & IMapFilterMask<K> = {}

      includes a filterMask which can be used to skip the invocation of the isEnabled function for some or all managed PageElements and the timeout within which the condition is expected to be met

      If no timeout is specified, a PageElement's default timeout is used.

    Returns MapType

    this (an instance of PageElementMap)

isVisible

  • Waits for all PageElements managed by PageElementMap to be visible.

    Throws an error if the condition is not met within a specific timeout.

    Parameters

    • Default value opts: ITimeout & IMapFilterMask<K> = {}

      includes a filterMask which can be used to skip the invocation of the isVisible function for some or all managed PageElements and the timeout within which the condition is expected to be met

      If no timeout is specified, a PageElement's default timeout is used.

    Returns MapType

    this (an instance of PageElementMap)

Generated using TypeDoc