## Download · identifier · axpilot
{"v": 1, "app": "com.example.demo", "role": "AXButton", "identifier": "downloadButton"}

## Download · identifier · axpilot-python
from axpilot import Desktop

DOWNLOAD = {
    "v": 1,
    "app": "com.example.demo",
    "role": "AXButton",
    "identifier": "downloadButton",
}

with Desktop.connect() as mac:
    mac.find(locator=DOWNLOAD).click()


## Share · name_within · axpilot
{"v": 1, "app": "com.example.demo", "within": [{"role": "AXSheet", "name": "Export"}], "role": "AXButton", "name": "Share"}

## Share · name_within · axpilot-python
from axpilot import Desktop

SHARE = {
    "v": 1,
    "app": "com.example.demo",
    "within": [{"role": "AXSheet", "name": "Export"}],
    "role": "AXButton",
    "name": "Share",
}

with Desktop.connect() as mac:
    mac.find(locator=SHARE).click()


## Email · name · axpilot
{"v": 1, "app": "com.example.demo", "role": "AXTextField", "name": "Email"}

## Email · name · axpilot-python
from axpilot import Desktop

EMAIL = {"v": 1, "app": "com.example.demo", "role": "AXTextField", "name": "Email"}

with Desktop.connect() as mac:
    mac.find(locator=EMAIL).type_text("your text")

