{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: records-record-layout-section.",
            "Represents the records-record-layout-section Lightning web component.",
            "Access a list of rows/columns/items, a row/column/item by index, or a section title. Check if the section is open or has a title. Toggle to collapse the section."
        ]
    },
    "methods": [
        {
            "description": {
                "text": [
                    "Check if the record layout section is open"
                ],
                "return": "boolean value"
            },
            "name": "isOpen",
            "compose": [
                {
                    "element": "root",
                    "apply": "containsElement",
                    "args": [
                        {
                            "type": "locator",
                            "value": {
                                "css": "div.slds-section.has-header.slds-is-open"
                            }
                        },
                        {
                            "value": true
                        }
                    ]
                }
            ]
        },
        {
            "description": {
                "text": [
                    "Check if there is title"
                ],
                "return": "boolean value"
            },
            "name": "hasTitle",
            "compose": [
                {
                    "element": "root",
                    "apply": "containsElement",
                    "args": [
                        {
                            "type": "locator",
                            "value": {
                                "css": ".slds-section__title"
                            }
                        },
                        {
                            "value": true
                        }
                    ]
                }
            ]
        },
        {
            "description": {
                "text": [
                    "Toggle the section to collapse"
                ],
                "return": "boolean value"
            },
            "name": "toggleSectionCollapse",
            "compose": [
                {
                    "element": "sectionTitleButton",
                    "apply": "click"
                },
                {
                    "element": "root",
                    "apply": "waitFor",
                    "args": [
                        {
                            "type": "function",
                            "predicate": [
                                {
                                    "element": "root",
                                    "apply": "containsElement",
                                    "args": [
                                        {
                                            "type": "locator",
                                            "value": {
                                                "css": "div.slds-section.has-header.slds-is-open"
                                            }
                                        },
                                        {
                                            "value": true
                                        }
                                    ],
                                    "matcher": {
                                        "type": "isFalse"
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "description": {
                "text": [
                    "Toggle the section to expand"
                ],
                "return": "boolean value"
            },
            "name": "toggleSectionExpand",
            "compose": [
                {
                    "element": "sectionTitleButton",
                    "apply": "click"
                },
                {
                    "element": "root",
                    "apply": "waitFor",
                    "args": [
                        {
                            "type": "function",
                            "predicate": [
                                {
                                    "element": "root",
                                    "apply": "containsElement",
                                    "args": [
                                        {
                                            "type": "locator",
                                            "value": {
                                                "css": "div.slds-section.has-header.slds-is-open"
                                            }
                                        },
                                        {
                                            "value": true
                                        }
                                    ],
                                    "matcher": {
                                        "type": "isTrue"
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "elements": [
        {
            "name": "rows",
            "public": true,
            "type": "utam-records/pageObjects/recordLayoutRow",
            "selector": {
                "css": "records-record-layout-row",
                "returnAll": true
            }
        },
        {
            "name": "row",
            "public": true,
            "type": "utam-records/pageObjects/recordLayoutRow",
            "selector": {
                "css": "records-record-layout-row:nth-of-type(%d)",
                "args": [
                    {
                        "name": "indexStartingOne",
                        "type": "number"
                    }
                ]
            }
        },
        {
            "name": "columns",
            "public": true,
            "type": "utam-records/pageObjects/recordLayoutColumn",
            "selector": {
                "css": "records-record-layout-column",
                "returnAll": true
            }
        },
        {
            "name": "column",
            "public": true,
            "type": "utam-records/pageObjects/recordLayoutColumn",
            "selector": {
                "css": "records-record-layout-column:nth-of-type(%d)",
                "args": [
                    {
                        "name": "indexStartingOne",
                        "type": "number"
                    }
                ]
            }
        },
        {
            "name": "items",
            "public": true,
            "type": "utam-records/pageObjects/recordLayoutItem",
            "selector": {
                "css": "records-record-layout-item",
                "returnAll": true
            }
        },
        {
            "name": "item",
            "public": true,
            "type": "utam-records/pageObjects/recordLayoutItem",
            "selector": {
                "css": "records-record-layout-item:nth-of-type(%d)",
                "args": [
                    {
                        "name": "indexStartingOne",
                        "type": "number"
                    }
                ]
            }
        }
    ],
    "shadow": {
        "elements": [
            {
                "name": "sectionTitleButton",
                "type": [
                    "clickable"
                ],
                "selector": {
                    "css": "button.slds-button"
                }
            },
            {
                "name": "sectionTitle",
                "public": true,
                "selector": {
                    "css": ".slds-section__title"
                }
            },
            {
                "name": "openSection",
                "selector": {
                    "css": "div.slds-section.has-header.slds-is-open"
                }
            }
        ]
    }
}