OptionaldestroyDestroys the session.
This releases all memory and items used by this object. If nothing is used, then this may do nothing.
Returns an attribute of the driver.
The attribute to retrieve.
The attribute value, or null if no such value exists.
Jumps to the body element.
This is useful if you are opening modals and popups that don't exist from withing the driver context.
A new driver that contains the document body as the context.
Returns a list of classes on the driver context that match a given filter.
Optionalfilter: string[]The filter of classes you want to check for. If you just want to get all classes, then just use undefined here.
The list of classes that match the filter.
Gets whether the context described by this driver is disabled.
True if the driver context is disabled. False if enabled.
Jumps to the focused element.
A new driver that contains the focused element, or null if there is no element focused.
Looks at the app structure to see if a css selector will produce any results.
The selector to check.
True if the selector will result in one or more results. False otherwise.
Performs an action against the driver context.
The act to perform.
Selects all items under this driver that matches the css selector.
The selector to query.
A promise that resolves with all items found from the selector. If no items are found, then an empty array is returned.
Selects a single item under the driver that matches the css selector.
The selector to query.
A resolved promise with the first item found if the selector produces one or more results. Returns a rejected promise if the selector returns no items.
Gets whether the value of the driver context is selected.
True if the context is in a selected state. False otherwise.
Gets the tag (node name) of the driver context.
The tag of the driver context.
Gets the underlying text of the driver context.
The underlying text of the driver context. Returns the empty string if no text exists.
Gets the underlying value of the driver context.
The fallback value in the case that the driver does not support a value.
The underlying value of the driver context, or fallback if the driver does not support a value.
Gets the underlying value of the driver context if there is one.
The underlying value of the driver context if there is one. Returns null if the driver does not support a value.
Waits for a certain condition to be met before continuing.
The predicate to wait for.
Optionaloptions: IZCircusWaitOptionsThe options for the wait.
Represents a driver that manages search and action criteria on a page object model.