cp.ui.Button.matches(element) -> boolean
element
is a Button
, returning true
if so.hs._asm.axuielement
to check.true
if the element
is a Button
, or false
if not.cp.ui.Button(parent, uiFinder) -> cp.ui.Button
Button
instance.UI
and isShowing
field.hs._asm.axuielement
the button belongs to, or nil
if not available.Button
instance.cp.ui.Button.title <cp.prop: string; read-only>
cp.ui.Button:doPress() -> cp.rx.go.Statement
Statement
that will press the button when executed, if available at the time.Statement
which will press the button when executed.cp.ui.Button:press() -> self, boolean
Button
instance.true
if the button was actually pressed successfully.