Skip to main content

HotTestDriver

hotstaq / Modules / HotTestDriver

Class: HotTestDriver

This actually executes the tests.

Hierarchy​

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new HotTestDriver(page?)

Parameters​

NameTypeDefault value
pageHotTestPagenull

Defined in​

HotTestDriver.ts:14

Properties​

page​

• page: HotTestPage

The current page.

Defined in​

HotTestDriver.ts:12

Methods​

assert​

â–¸ assert(value, errorMessage?): Promise<any>

An expression to test.

Parameters​

NameTypeDefault value
valueanyundefined
errorMessagestring""

Returns​

Promise<any>

Defined in​

HotTestDriver.ts:106


assertElementValue​

â–¸ Abstract assertElementValue(name, value, errorMessage?, options?): Promise<any>

An expression to test.

Parameters​

NameType
namestring | HotTestElement
valueany
errorMessage?string
options?HotTestElementOptions

Returns​

Promise<any>

Defined in​

HotTestDriver.ts:101


destroy​

â–¸ Abstract destroy(): Promise<void>

Disconnect this server or destroy anything associated with this HotTestDriver.

Returns​

Promise<void>

Defined in​

HotTestDriver.ts:80


findTestElement​

â–¸ Abstract findTestElement(name, options?): Promise<any>

Find a HotTestElement to utilize.

Parameters​

NameType
namestring | HotTestElement
options?HotTestElementOptions

Returns​

Promise<any>

Defined in​

HotTestDriver.ts:93


â–¸ Abstract navigateToUrl(url): Promise<void>

Navigate to a url.

Parameters​

NameType
urlstring

Returns​

Promise<void>

Defined in​

HotTestDriver.ts:85


parseTestObject​

â–¸ parseTestObject(name): string

Get a test object by it's name. If a * is used, it will be used as a wildcard for the object's name. If a > is used, then the name will be treated as a CSS selector.

Parameters​

NameType
namestring

Returns​

string

Defined in​

HotTestDriver.ts:24


print​

â–¸ print(message): Promise<void>

Print a message.

Parameters​

NameType
messagestring

Returns​

Promise<void>

Defined in​

HotTestDriver.ts:64


println​

â–¸ println(message): Promise<void>

Print a message line.

Parameters​

NameType
messagestring

Returns​

Promise<void>

Defined in​

HotTestDriver.ts:72


run​

â–¸ run(executions): Promise<any[]>

Run a series of test elements.

Parameters​

NameType
executionsstring[] | string[][]

Returns​

Promise<any[]>

Defined in​

HotTestDriver.ts:115


runCommand​

â–¸ Abstract runCommand(testElm, funcName?, valueStr?): Promise<any>

Run a HotTestElement command.

Parameters​

NameType
testElmstring | HotTestElement
funcName?string
valueStr?string

Returns​

Promise<any>

Defined in​

HotTestDriver.ts:97


wait​

â–¸ wait(numMilliseconds): Promise<void>

Wait for a number of milliseconds.

Parameters​

NameType
numMillisecondsnumber

Returns​

Promise<void>

Defined in​

HotTestDriver.ts:50


waitForTestElement​

â–¸ Abstract waitForTestElement(name, options?): Promise<any>

Wait for a HotTestElement to load.

Parameters​

NameType
namestring | HotTestElement
options?HotTestElementOptions

Returns​

Promise<any>

Defined in​

HotTestDriver.ts:89