Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PageElementEventually<Store, PageElementType>

This class defines all eventually functions of PageElement.

template

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

template

PageElementType type of the PageElement for which PageElementEventually defines all eventually functions

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Protected _node

_node: PageElementType

the PageNode for which PageNodeEventually defines all eventually functions

Accessors

not

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

    Returns object

    • containsAttribute: function
      • Returns true if the actual value of the specified HTML attribute of PageElement eventually does not contain an expected value within a specific timeout.

        Parameters

        • attribute: IAttribute

          the specified HTML attribute of PageElement, consisting of the attribute's name and the value it is expected not to contain

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

        Returns boolean

    • containsClass: function
      • Returns true if the actual value of PageElement's 'class' HTML attribute eventually does not contain an expected value within a specific timeout.

        Parameters

        • className: string

          the expected value which is supposed not to be contained in the actual value of PageElement's HTML 'class' attribute

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

        Returns boolean

    • containsDirectText: function
      • Returns true if PageElement's actual direct text eventually does not 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

          the expected direct text which is supposed not to be contained in PageElement's actual direct text

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

        Returns boolean

    • containsHTML: function
      • Returns true if PageElement's actual HTML eventually does not contain the expected HTML within a specific timeout.

        Parameters

        • html: string

          the expected HTML which is supposed not to be contained in PageElement's actual HTML

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

        Returns boolean

    • containsId: function
      • Returns true if the actual value of PageElement's 'id' HTML attribute eventually does not contain an expected value within a specific timeout.

        Parameters

        • id: string

          the expected value which is supposed not to be contained in the actual value of PageElement's HTML 'id' attribute

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

        Returns boolean

    • containsName: function
      • Returns true if the actual value of PageElement's 'name' HTML attribute eventually does not contain an expected value within a specific timeout.

        Parameters

        • name: string

          the expected value which is supposed not to be contained in the actual value of PageElement's 'name' HTML attribute

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

        Returns boolean

    • containsText: function
      • Returns true if PageElement's actual text eventually does not contain the expected text within a specific timeout.

        Parameters

        • text: string

          the expected text which is supposed not to be contained in PageElement's actual text

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

        Returns boolean

    • exists: function
      • Returns true if PageElement eventually does not exist within a specific timeout.

        Parameters

        • Optional opts: ITimeout

          includes the timeout within which the condition is expected to be met

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

        Returns boolean

    • hasAnyAttribute: function
      • Returns true if the specified HTML attribute of PageElement eventually does not have any value within a specific timeout.

        Parameters

        • attributeName: string

          the name of a PageElement's HTML attribute which is supposed not to have any value

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

        Returns boolean

    • hasAnyClass: function
      • Returns true if PageElement's 'class' HTML attribute eventually does not have any value 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

        Returns boolean

    • hasAnyDirectText: function
      • Returns true if PageElement eventually does not 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

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

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

        Returns boolean

    • hasAnyHTML: function
      • Returns true if PageElement eventually does not have any HTML 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

        Returns boolean

    • hasAnyId: function
      • Returns true if PageElement's 'id' HTML attribute eventually does not have any value 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

        Returns boolean

    • hasAnyName: function
      • Returns true if PageElement's 'name' HTML attribute eventually does not have any value 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

        Returns boolean

    • hasAnyText: function
      • Returns true if PageElement eventually does not have any text 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

        Returns boolean

    • hasAttribute: function
      • Returns true if the actual value of the specified HTML attribute of PageElement eventually does not equal an expected value within a specific timeout.

        Parameters

        • attribute: IAttribute

          the specified HTML attribute of PageElement, consisting of the attribute's name and the value it is expected not to have

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

        Returns boolean

    • hasClass: function
      • Returns true if the actual value of PageElement's 'class' HTML attribute eventually does not equal an expected value within a specific timeout.

        Parameters

        • className: string

          the expected value which is supposed not to equal the actual value of PageElement's HTML 'class' attribute

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

        Returns boolean

    • hasDirectText: function
      • Returns true if PageElement's actual direct text eventually does not equal 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

          the expected direct text which is supposed not to equal PageElement's actual direct text

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

        Returns boolean

    • hasHTML: function
      • Returns true if PageElement's actual HTML eventually does not equal the expected HTML within a specific timeout.

        Parameters

        • html: string

          the expected HTML which is supposed not to equal PageElement's actual HTML

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

        Returns boolean

    • hasHeight: function
      • Returns true if PageElement's height eventually does not equal the expected height or if it deviates more than the specified tolerance from the expected height within a specific timeout.

        Parameters

        • height: number

          the not-expected height of PageElement in pixels

        • Default value opts: object & ITimeoutInterval = { tolerance: 0 }

          includes the tolerance used to calculate the maximal allowed deviation from the expected height, the timeout within which the condition is expected to be met and the interval used to check it

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

        Returns boolean

    • hasId: function
      • Returns true if the actual value of PageElement's 'id' HTML attribute eventually does not equal an expected value within a specific timeout.

        Parameters

        • id: string

          the expected value which is supposed not to equal the actual value of PageElement's 'id' HTML attribute

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

        Returns boolean

    • hasLocation: function
      • Returns true if PageElement's location eventually does not equal the expected coordinates or if it deviates more than the specified tolerances from the expected coordinates within a specific timeout.

        Parameters

        • coordinates: ICoordinates

          the not-expected coordinates of PageElement in pixels

        • Default value opts: object & ITimeoutInterval = { tolerances: { x: 0, y: 0 } }

          includes the tolerances used to calculate the maximal allowed deviations from the expected coordinates, the timeout within which the condition is expected to be met and the interval used to check it

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

        Returns boolean

    • hasName: function
      • Returns true if the actual value of PageElement's 'name' HTML attribute eventually does not equal an expected value within a specific timeout.

        Parameters

        • name: string

          the expected value which is supposed not to equal the actual value of PageElement's 'name' HTML attribute

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

        Returns boolean

    • hasSize: function
      • Returns true if PageElement's size eventually does not equal the expected size or if it deviates more than the specified tolerances from the expected size within a specific timeout.

        Parameters

        • size: ISize

          the not-expected size of PageElement in pixels

        • Default value opts: object & ITimeoutInterval = { tolerances: { width: 0, height: 0 } }

          includes the tolerances used to calculate the maximal allowed deviations from the expected size, the timeout within which the condition is expected to be met and the interval used to check it

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

        Returns boolean

    • hasText: function
      • Returns true if PageElement's actual text eventually does not equal the expected text within a specific timeout.

        Parameters

        • text: string

          the expected text which is supposed not to equal PageElement's actual text

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

        Returns boolean

    • hasWidth: function
      • Returns true if PageElement's width eventually does not equal the expected width or if it deviates more than the specified tolerance from the expected width within a specific timeout.

        Parameters

        • width: number

          the not-expected width of PageElement in pixels

        • Default value opts: object & ITimeoutInterval = { tolerance: 0 }

          includes the tolerance used to calculate the maximal allowed deviation from the expected width, the timeout within which the condition is expected to be met and the interval used to check it

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

        Returns boolean

    • hasX: function
      • Returns true if PageElement's x-location eventually does not equal the expected x-location or if it deviates more than the specified tolerance from the expected x-location within a specific timeout.

        Parameters

        • x: number

          the not-expected x-location of PageElement in pixels

        • Default value opts: object & ITimeoutInterval = { tolerance: 0 }

          includes the tolerance used to calculate the maximal allowed deviation from the expected x-location, the timeout within which the condition is expected to be met and the interval used to check it

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

        Returns boolean

    • hasY: function
      • Returns true if PageElement's y-location eventually does not equal the expected y-location or if it deviates more than the specified tolerance from the expected y-location within a specific timeout.

        Parameters

        • y: number
        • Default value opts: object & ITimeoutInterval = { tolerance: 0 }

          includes the tolerance used to calculate the maximal allowed deviation from the expected y-location, the timeout within which the condition is expected to be met and the interval used to check it

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

        Returns boolean

    • isChecked: function
      • Returns true if PageElement eventually is not checked 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

        Returns boolean

    • isEnabled: function
      • Returns true if PageElement eventually is not enabled within a specific timeout.

        Parameters

        • Optional opts: ITimeout

          includes the timeout within which the condition is expected to be met

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

        Returns boolean

    • isSelected: function
      • Returns true if PageElement eventually is not selected within a specific timeout.

        Parameters

        • Optional opts: ITimeout

          includes the timeout within which the condition is expected to be met

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

        Returns boolean

    • isVisible: function
      • Returns true if PageElement eventually is not visible within a specific timeout.

        Parameters

        • Optional opts: ITimeout

          includes the timeout within which the condition is expected to be met

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

        Returns boolean

Methods

containsAttribute

  • Returns true if the actual value of the specified HTML attribute of PageElement eventually contains an expected value within a specific timeout.

    Parameters

    • attribute: IAttribute

      the specified HTML attribute of PageElement, consisting of the attribute's name and the value it is expected to contain

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

    Returns boolean

containsClass

  • Returns true if the actual value of PageElement's 'class' HTML attribute eventually contains an expected value within a specific timeout.

    Parameters

    • className: string

      the expected value which is supposed to be contained in the actual value of PageElement's HTML 'class' attribute

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

    Returns boolean

containsDirectText

  • Returns true if PageElement's actual direct text eventually contains 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

      the expected direct text which is supposed to be contained in PageElement's actual direct text

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

    Returns boolean

containsHTML

  • Returns true if PageElement's actual HTML eventually contains the expected HTML within a specific timeout.

    Parameters

    • html: string

      the expected HTML which is supposed to be contained in PageElement's actual HTML

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

    Returns boolean

containsId

  • Returns true if the actual value of PageElement's 'id' HTML attribute eventually contains an expected value within a specific timeout.

    Parameters

    • id: string

      the expected value which is supposed to be contained in the actual value of PageElement's HTML 'id' attribute

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

    Returns boolean

containsName

  • Returns true if the actual value of PageElement's 'name' HTML attribute eventually contains an expected value within a specific timeout.

    Parameters

    • name: string

      the expected value which is supposed to be contained in the actual value of PageElement's 'name' HTML attribute

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

    Returns boolean

containsText

  • Returns true if PageElement's actual text eventually contains the expected text within a specific timeout.

    Parameters

    • text: string

      the expected text which is supposed to be contained in PageElement's actual text

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

    Returns boolean

exists

  • Returns true if PageElement eventually exists within a specific timeout.

    Parameters

    • Optional opts: ITimeout

      includes the timeout within which the condition is expected to be met

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

    Returns boolean

hasAnyAttribute

  • Returns true if the specified HTML attribute of PageElement eventually has any value within a specific timeout.

    Parameters

    • attributeName: string

      the name of a PageElement's HTML attribute which is supposed to have any value

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

    Returns boolean

hasAnyClass

  • Returns true if PageElement's 'class' HTML attribute eventually has any value 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

    Returns boolean

hasAnyDirectText

  • Returns true if PageElement eventually has 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

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

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

    Returns boolean

hasAnyHTML

  • Returns true if PageElement eventually has any HTML 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

    Returns boolean

hasAnyId

  • Returns true if PageElement's 'id' HTML attribute eventually has any value 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

    Returns boolean

hasAnyName

  • Returns true if PageElement's 'name' HTML attribute eventually has any value 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

    Returns boolean

hasAnyText

  • Returns true if PageElement eventually has any text 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

    Returns boolean

hasAttribute

  • Returns true if the actual value of the specified HTML attribute of PageElement eventually equals an expected value within a specific timeout.

    Parameters

    • attribute: IAttribute

      the specified HTML attribute of PageElement, consisting of the attribute's name and the value it is expected to have

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

    Returns boolean

hasClass

  • Returns true if the actual value of PageElement's 'class' HTML attribute eventually equals an expected value within a specific timeout.

    Parameters

    • className: string

      the expected value which is supposed to equal the actual value of PageElement's HTML 'class' attribute

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

    Returns boolean

hasDirectText

  • Returns true if PageElement's actual direct text eventually equals 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

      the expected direct text which is supposed to equal PageElement's actual direct text

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

    Returns boolean

hasHTML

  • Returns true if PageElement's actual HTML eventually equals the expected HTML within a specific timeout.

    Parameters

    • html: string

      the expected HTML which is supposed to equal PageElement's actual HTML

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

    Returns boolean

hasHeight

  • Returns true if PageElement's height eventually equals the expected height or if it deviates no more than the specified tolerance from the expected height within a specific timeout.

    Parameters

    • height: number

      the expected height of PageElement in pixels

    • Default value opts: object & ITimeoutInterval = { tolerance: 0 }

      includes the tolerance used to calculate the maximal allowed deviation from the expected height, the timeout within which the condition is expected to be met and the interval used to check it

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

    Returns boolean

hasId

  • Returns true if the actual value of PageElement's 'id' HTML attribute eventually equals an expected value within a specific timeout.

    Parameters

    • id: string

      the expected value which is supposed to equal the actual value of PageElement's 'id' HTML attribute

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

    Returns boolean

hasLocation

  • Returns true if PageElement's location eventually equals the expected coordinates or if it deviates no more than the specified tolerances from the expected coordinates within a specific timeout.

    Parameters

    • coordinates: ICoordinates

      the expected coordinates of PageElement in pixels

    • Default value opts: object & ITimeoutInterval = { tolerances: { x: 0, y: 0 } }

      includes the tolerances used to calculate the maximal allowed deviations from the expected coordinates, the timeout within which the condition is expected to be met and the interval used to check it

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

    Returns boolean

hasName

  • Returns true if the actual value of PageElement's 'name' HTML attribute eventually equals an expected value within a specific timeout.

    Parameters

    • name: string

      the expected value which is supposed to equal the actual value of PageElement's 'name' HTML attribute

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

    Returns boolean

hasSize

  • Returns true if PageElement's size eventually equals the expected size or if it deviates no more than the specified tolerances from the expected size within a specific timeout.

    Parameters

    • size: ISize

      the expected size of PageElement in pixels

    • Default value opts: object & ITimeoutInterval = { tolerances: { width: 0, height: 0 } }

      includes the tolerances used to calculate the maximal allowed deviations from the expected size, the timeout within which the condition is expected to be met and the interval used to check it

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

    Returns boolean

hasText

  • Returns true if PageElement's actual text eventually equals the expected text within a specific timeout.

    Parameters

    • text: string

      the expected text which is supposed to equal PageElement's actual text

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

    Returns boolean

hasWidth

  • Returns true if PageElement's width eventually equals the expected width or if it deviates no more than the specified tolerance from the expected width within a specific timeout.

    Parameters

    • width: number

      the expected width of PageElement in pixels

    • Default value opts: object & ITimeoutInterval = { tolerance: 0 }

      includes the tolerance used to calculate the maximal allowed deviation from the expected width, the timeout within which the condition is expected to be met and the interval used to check it

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

    Returns boolean

hasX

  • Returns true if PageElement's x-location eventually equals the expected x-location or if it deviates no more than the specified tolerance from the expected x-location within a specific timeout.

    Parameters

    • x: number

      the expected x-location of PageElement in pixels

    • Default value opts: object & ITimeoutInterval = { tolerance: 0 }

      includes the tolerance used to calculate the maximal allowed deviation from the expected x-location, the timeout within which the condition is expected to be met and the interval used to check it

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

    Returns boolean

hasY

  • Returns true if PageElement's y-location eventually equals the expected y-location or if it deviates no more than the specified tolerance from the expected y-location within a specific timeout.

    Parameters

    • y: number

      the expected y-location of PageElement in pixels

    • Default value opts: object & ITimeoutInterval = { tolerance: 0 }

      includes the tolerance used to calculate the maximal allowed deviation from the expected y-location, the timeout within which the condition is expected to be met and the interval used to check it

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

    Returns boolean

isChecked

  • Returns true if PageElement eventually is checked 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, PageElement's default timeout is used. If no interval is specified, PageElement's default interval is used.

    Returns boolean

isEnabled

  • Returns true if PageElement eventually is enabled within a specific timeout.

    Parameters

    • Optional opts: ITimeout

      includes the timeout within which the condition is expected to be met

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

    Returns boolean

isSelected

  • Returns true if PageElement eventually is selected within a specific timeout.

    Parameters

    • Optional opts: ITimeout

      includes the timeout within which the condition is expected to be met

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

    Returns boolean

isVisible

  • Returns true if PageElement eventually is visible within a specific timeout.

    Parameters

    • Optional opts: ITimeout

      includes the timeout within which the condition is expected to be met

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

    Returns boolean

meetsCondition

  • Returns true if the passed condition is eventually met within a specific timeout.

    Parameters

    • condition: function

      a function which is supposed to return true if the specified condition is met

        • (element: PageElementType): boolean
        • Parameters

          • element: PageElementType

          Returns boolean

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

    Returns boolean

Generated using TypeDoc