Interface IElement

mixin

Hierarchy

Index

Methods

Methods

public chainClick(elements: Array<any>, callback: Function)

Parameters

  • elements: Array<any>
  • callback: Function

public clickSelector(selector: string, callback: Function, scope?: any)

Parameters

  • selector: string
  • callback: Function
  • scope?: any optional

public clickSelector(selector: string, root: any, callback: Function, scope?: any)

Parameters

  • selector: string
  • root: any
  • callback: Function
  • scope?: any optional

public contentLike(el: any, text: string, description?: string)

Parameters

  • el: any
  • text: string
  • description?: string optional

public contentNotLike(el: any, text: string, description?: string)

Parameters

  • el: any
  • text: string
  • description?: string optional

public elementIsAt(el: any, xy: Array<number>, allowChildren: boolean, description?: string)

Parameters

  • el: any
  • xy: Array<number>
  • allowChildren: boolean
  • description?: string optional

public elementIsInView(el: any)

Parameters

  • el: any

public elementIsNotTopElement(el: any, allowChildren: boolean, description?: string)

Parameters

  • el: any
  • allowChildren: boolean
  • description?: string optional

public elementIsNotVisible(el: any, description?: string)

Parameters

  • el: any
  • description?: string optional

public elementIsTop(el: any, allowChildren: boolean): boolean

Parameters

  • el: any
  • allowChildren: boolean

Returns

boolean

public elementIsTopElement(el: any, allowChildren: boolean, description?: string, strict?: any)

Parameters

  • el: any
  • allowChildren: boolean
  • description?: string optional
  • strict?: any optional

public elementIsVisible(el: any, description?: string)

Parameters

  • el: any
  • description?: string optional

public findCenter(el: any, local?: boolean): Array<number>

Parameters

  • el: any
  • local?: boolean optional

Returns

Array<number>

public hasCls(el: any, cls: string, description?: string)

Parameters

  • el: any
  • cls: string
  • description?: string optional

public hasNotCls(el: any, cls: string, description?: string)

Parameters

  • el: any
  • cls: string
  • description?: string optional

public hasNotStyle(el: any, property: string, value: string, description?: string)

Parameters

  • el: any
  • property: string
  • value: string
  • description?: string optional

public hasStyle(el: any, property: string, value: string, description?: string)

Parameters

  • el: any
  • property: string
  • value: string
  • description?: string optional

public isElementVisible(el: any): boolean

Parameters

  • el: any

Returns

boolean

public isInView(el: any, description?: string)

Parameters

  • el: any
  • description?: string optional

public monkeyTest(el: any, nbrInteractions: number, description?: string, callback?: Function, scope?: any)

Parameters

  • el: any
  • nbrInteractions: number
  • description?: string optional
  • callback?: Function optional
  • scope?: any optional

public scrollHorizontallyTo(el: any, newLeft: number, delay?: number, callback?: Function): number

Parameters

  • el: any
  • newLeft: number
  • delay?: number optional
  • callback?: Function optional

Returns

number

public scrollVerticallyTo(el: any, newTop: number, delay?: number, callback?: Function): number

Parameters

  • el: any
  • newTop: number
  • delay?: number optional
  • callback?: Function optional

Returns

number

public selectorCountIs(selector: string, count: number, description: string)

Parameters

  • selector: string
  • count: number
  • description: string

public selectorCountIs(selector: string, root: any, count: number, description: string)

Parameters

  • selector: string
  • root: any
  • count: number
  • description: string

public selectorExists(selector: string, description?: string)

Parameters

  • selector: string
  • description?: string optional

public selectorIsAt(selector: string, xy: Array<number>, allowChildren: boolean, description?: string)

Parameters

  • selector: string
  • xy: Array<number>
  • allowChildren: boolean
  • description?: string optional

public selectorNotExists(selector: string, description?: string)

Parameters

  • selector: string
  • description?: string optional

public waitForContentLike(el: any, text: string, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • text: string
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForContentNotLike(el: any, text: string, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • text: string
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForElementNotTop(el: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForElementNotVisible(el: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForElementTop(el: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForElementVisible(el: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForScrollChange(el: any, side: string, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • side: string
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForScrollLeftChange(el: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForScrollTopChange(el: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForSelector(selector: string, callback: Function, scope?: any, timeout?: number)

Parameters

  • selector: string
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForSelector(selector: string, root: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • selector: string
  • root: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForSelectorAt(xy: Array<number>, selector: string, callback: Function, scope?: any, timeout?: number)

Parameters

  • xy: Array<number>
  • selector: string
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForSelectorAtCursor(xy: Array<number>, selector: string, callback: Function, scope?: any, timeout?: number)

Parameters

  • xy: Array<number>
  • selector: string
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForSelectorNotFound(selector: string, callback: Function, scope?: any, timeout?: number)

Parameters

  • selector: string
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForSelectorNotFound(selector: string, root: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • selector: string
  • root: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForSelectors(selectors: Array<string>, callback: Function, scope?: any, timeout?: number)

Parameters

  • selectors: Array<string>
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitForSelectors(selectors: Array<string>, root: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • selectors: Array<string>
  • root: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional

public waitUntilInView(el: any, callback: Function, scope?: any, timeout?: number)

Parameters

  • el: any
  • callback: Function
  • scope?: any optional
  • timeout?: number optional