Functions

Static Public Summary
public

Expectation that the element is active.

public

Expectation that the element is visible and enabled, and therefore clickable

public

Expectation that the element is enabled.

public

Expectation that the element is present in the DOM of a page.

public

Expectation that the element is present and selected

public

Expectation that the element is present in the DOM of the page and visible.

public

run(runner: Runner, specs: string[]): Promise<ProtractorReport>

Static Public

public isPresent(): Expectation<boolean, ElementFinder> source

import {isPresent} from '@serenity-js/protractor/lib/expectations'

Expectation that the element is present in the DOM of a page. Please note that this does not necessarily mean that the element is visible.

Returns:

Expectation<boolean, ElementFinder>

See:

public isVisible(): Expectation<boolean, ElementFinder> source

import {isVisible} from '@serenity-js/protractor/lib/expectations'

Expectation that the element is present in the DOM of the page and visible.

Returns:

Expectation<boolean, ElementFinder>

See:

public run(runner: Runner, specs: string[]): Promise<ProtractorReport> source

import {run} from '@serenity-js/protractor/lib/adapter'

Params:

NameTypeAttributeDescription
runner Runner
specs string[]

Returns:

Promise<ProtractorReport>