{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: records-base-record-form",
            "Represents the records-base-record-form Lightning web component.",
            "Get records-lwc-record-layout. Click the footer action button."
        ]
    },
    "beforeLoad": [
        {
            "apply": "waitFor",
            "args": [
                {
                    "type": "function",
                    "predicate": [
                        {
                            "element": "root",
                            "apply": "containsElement",
                            "args": [
                                {
                                    "type": "locator",
                                    "value": {
                                        "css": ".record-layout-container, .record-layout-container-mobile"
                                    }
                                },
                                {
                                    "value": true
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "shadow": {
        "elements": [
            {
                "name": "recordLayoutContainer",
                "selector": {
                    "css": ".record-layout-container,.record-layout-container-mobile"
                },
                "elements": [
                    {
                        "type": "utam-records/pageObjects/lwcRecordLayout",
                        "name": "recordLayout",
                        "selector": {
                            "css": "records-lwc-record-layout"
                        },
                        "public": true
                    }
                ]
            },
            {
                "type": "utam-records/pageObjects/formFooter",
                "name": "footer",
                "selector": {
                    "css": "records-form-footer"
                },
                "public": true
            },
            {
                "type": "utam-records/pageObjects/mobileFormHeader",
                "name": "header",
                "selector": {
                    "css": "records-mobile-form-header"
                },
                "public": true
            },
            {
                "type": "utam-lightning/pageObjects/button",
                "name": "viewMoreButton",
                "selector": {
                    "css": "lightning-button.view-button"
                },
                "public": true
            }
        ]
    },
    "methods": [
        {
            "description": {
                "text": [
                    "Click the footer button"
                ],
                "return": "none"
            },
            "name": "clickFooterButton",
            "compose": [
                {
                    "element": "footer"
                },
                {
                    "chain": true,
                    "element": "actionsRibbon",
                    "returnType": "utam-action/pageObjects/actionsRibbon"
                },
                {
                    "chain": true,
                    "apply": "getActionRendererWithTitle",
                    "args": [
                        {
                            "name": "titleString",
                            "type": "string"
                        }
                    ],
                    "returnType": "utam-action/pageObjects/actionRenderer"
                },
                {
                    "chain": true,
                    "apply": "clickButton"
                }
            ]
        },
        {
            "description": {
                "text": [
                    "Wait for records-lwc-record-layout to be loaded"
                ],
                "return": "Self"
            },
            "name": "waitForLoad",
            "compose": [
                {
                    "apply": "waitFor",
                    "args": [
                        {
                            "type": "function",
                            "predicate": [
                                {
                                    "element": "recordLayoutContainer",
                                    "apply": "containsElement",
                                    "args": [
                                        {
                                            "type": "locator",
                                            "value": {
                                                "css": "records-lwc-record-layout"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "apply": "returnSelf"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}