Class: inViewport

hobs.actions.assert. inViewport

Checks if the element(s) specified by the selector is in the viewport or not.


new inViewport(selector [, isInViewport] [, options])

Parameters:
Name Type Argument Default Description
selector String

The selector to the element(s)

isInViewport Boolean <optional>
true

true to check if it is, false to check if it isn't

options TestActionOptions <optional>

Options for the test step