Options
All
  • Public
  • Public/Protected
  • All
Menu

Module session

Index

Variables

CUSTOM_EVENT_DELAY

CUSTOM_EVENT_DELAY: number

DATA_CLASS_REGEXP

DATA_CLASS_REGEXP: RegExp

LISTEN_TO_EVENTS

LISTEN_TO_EVENTS: Array<string>

VERSION_CURRENT

VERSION_CURRENT: string

Constants/Enums

VERSION_NOT_SET

VERSION_NOT_SET: string

Functions

bootstrap

  • Bootstrap Methods

    Returns Session

cleanInnerText

  • cleanInnerText(innerText: string): string
  • Parameters

    • innerText: string

    Returns string

fetchSessionJSON

  • fetchSessionJSON(source: SessionSource, callback: function): void

generateClickRandomBounds

  • generateClickRandomBounds(numberOfEvents: number, minX: number, minY: number, maxX: number, maxY: number): Function
  • Parameters

    • numberOfEvents: number
    • minX: number
    • minY: number
    • maxX: number
    • maxY: number

    Returns Function

generateClickRandomElement

  • generateClickRandomElement(numberOfEvents: number, elementXPathList: string[]): Function
  • Parameters

    • numberOfEvents: number
    • elementXPathList: string[]

    Returns Function

generateMapDrag

  • generateMapDrag(numberOfEvents: number): Function
  • Parameters

    • numberOfEvents: number

    Returns Function

getClickEvent

  • getClickEvent(element: Element): Event[]
  • Parameters

    • element: Element

    Returns Event[]

getClickEvent_ByPoint

  • getClickEvent_ByPoint(x: number, y: number): Event[]
  • Parameters

    • x: number
    • y: number

    Returns Event[]

getMapDragEvent

  • getMapDragEvent(mapElement: Element, startX: number, startY: number, endX: number, endY: number): Event[]
  • Parameters

    • mapElement: Element
    • startX: number
    • startY: number
    • endX: number
    • endY: number

    Returns Event[]

getNonSessionSearch

  • getNonSessionSearch(): object
  • Returns object

    • [key: string]: any

getRandomClickEvent_FromBoundingBox

  • getRandomClickEvent_FromBoundingBox(minX: number, minY: number, maxX: number, maxY: number): Event[]
  • Create Events

    Parameters

    • minX: number
    • minY: number
    • maxX: number
    • maxY: number

    Returns Event[]

getRandomClickEvent_FromElements

  • getRandomClickEvent_FromElements(elements: Element[]): Event[]
  • Parameters

    • elements: Element[]

    Returns Event[]

getRandomMapDragEvent

  • getRandomMapDragEvent(mapElement: Element, minX: number, minY: number, maxX: number, maxY: number): Event[]
  • Parameters

    • mapElement: Element
    • minX: number
    • minY: number
    • maxX: number
    • maxY: number

    Returns Event[]

isRepositoryRecord

  • isRepositoryRecord(sessionId: string): boolean
  • Parameters

    • sessionId: string

    Returns boolean

saveSessionJSON

  • saveSessionJSON(sessionId: string, sessionName: string, sessionJSON: SessionJSON, callback?: function): void

testDOMElement

  • testDOMElement(testName: string, xpath: string, isTestingExistence: boolean, isTestingInnerText: boolean, isTestingInnerHTML: boolean, innerText: string, innerHTML: string): void
  • Injected Event Helpers

    Parameters

    • testName: string
    • xpath: string
    • isTestingExistence: boolean
    • isTestingInnerText: boolean
    • isTestingInnerHTML: boolean
    • innerText: string
    • innerHTML: string

    Returns void

Generated using TypeDoc