@duckduckgo/content-scope-scripts
    Preparing search index...

    Click one or more elements. Either provide elements directly, or choices (with an optional default) to pick elements conditionally.

    interface ClickAction {
        actionType: "click";
        choices?: Choice[];
        dataSource?: string;
        default?: { elements: ClickElement[] } | null;
        elements?: ClickElement[];
        id: string;
        retry?: RetryConfig;
    }
    Index

    Properties

    actionType: "click"
    choices?: Choice[]

    conditional branches; the first matching choice's elements are clicked

    dataSource?: string
    default?: { elements: ClickElement[] } | null

    fallback used when no choice matches; null means skip without error

    elements?: ClickElement[]

    elements to click; mutually exclusive with choices

    id: string
    retry?: RetryConfig