Alert

Last updated 23 days ago

Alert UI Module.

API Overview

API Documentation

Variables

isShowing

Signature

cp.ui.Alert.isShowing <cp.prop: boolean>

Type

Variable

Description

Is the alert showing?

title

Signature

cp.ui.Alert.title <cp.prop: string>

Type

Variable

Description

Gets the title of the alert.

Functions

matches

Signature

cp.ui.Alert.matches(element) -> boolean

Type

Function

Description

Checks to see if an element matches what we think it should be.

Parameters

Returns

Constructors

new

Signature

cp.ui.Alert.new(app) -> Alert

Type

Constructor

Description

Creates a new Alert instance.

Parameters

Returns

Methods

app

Signature

cp.ui.Alert:app() -> App

Type

Method

Description

Returns the app instance.

Parameters

Returns

cancel

Signature

cp.ui.Alert:cancel() -> Button

Type

Method

Description

Gets the Cancel button object.

Parameters

Returns

Signature

cp.ui.Alert:containsText(value[, plain]) -> boolean

Type

Method

Description

Checks if there are any child text elements containing the exact text or pattern, from beginning to end.

Parameters

Returns

default

Signature

cp.ui.Alert:default() -> Button

Type

Method

Description

Gets the default button object.

Parameters

Returns

hide

Signature

cp.ui.Alert:hide() -> none

Type

Method

Description

Hides the alert by pressing the "Cancel" button.

Parameters

Returns

parent

Signature

cp.ui.Alert:parent() -> parent

Type

Method

Description

Returns the parent object.

Parameters

Returns

Signature

cp.ui.Alert:pressCancel() -> self, boolean

Type

Method

Description

Presses the Cancel button.

Parameters

Returns

Signature

cp.ui.Alert:pressDefault() -> self, boolean

Type

Method

Description

Presses the Default button.

Parameters

Returns

UI

Signature

cp.ui.Alert:UI() -> axuielementObject

Type

Method

Description

Returns the UI object.

Parameters

Returns