Interface Driver

Index

Properties

Methods

Properties

public events: DriverEvents

Methods

public exec(args: { func: Function; args?: any[]; }, callback?: Function): any

Parameters

  • args: { func: Function; args?: any[]; }
  • callback?: Function optional

Returns

any

public exec(func: Function, callback?: Function): any

Parameters

  • func: Function
  • callback?: Function optional

Returns

any

public find(selector: string, callback?: (err: Error, elements: "browser-harness".ElementProxy) => void): ElementProxy

Parameters

  • selector: string
  • callback?: (err: Error, elements: "browser-harness".ElementProxy) => void optional

Returns

ElementProxy

public findElement(selector: string, callback?: (err: Error, element: "browser-harness".ElementProxy) => void): ElementProxy

Parameters

  • selector: string
  • callback?: (err: Error, element: "browser-harness".ElementProxy) => void optional

Returns

ElementProxy

public findElements(selector: string, callback?: (err: Error, elements: "browser-harness".ElementProxy) => void): ElementProxy

Parameters

  • selector: string
  • callback?: (err: Error, elements: "browser-harness".ElementProxy) => void optional

Returns

ElementProxy

public findVisible(selector: string, callback?: (err: Error, element: "browser-harness".ElementProxy) => void): ElementProxy

Parameters

  • selector: string
  • callback?: (err: Error, element: "browser-harness".ElementProxy) => void optional

Returns

ElementProxy

public findVisibles(selector: string, callback?: (err: Error, elements: "browser-harness".ElementProxy) => void): ElementProxy

Parameters

  • selector: string
  • callback?: (err: Error, elements: "browser-harness".ElementProxy) => void optional

Returns

ElementProxy

public setUrl(url: string, callback?: Function): any

Parameters

  • url: string
  • callback?: Function optional

Returns

any

public waitFor(args: { condition: Function; exec?: Function; timeoutMS?: number; }, callback?: Function): any

Parameters

  • args: { condition: Function; exec?: Function; timeoutMS?: number; }
  • callback?: Function optional

Returns

any

public waitFor(condition: Function, callback?: Function): any

Parameters

  • condition: Function
  • callback?: Function optional

Returns

any