#cy.boxSelectionEnabled()
// Check whether box selection is enabled
cy.boxSelectionEnabled(): booleanRead whether the box-selection gesture is available.
Returns
booleanthe current boxSelectionEnabled value
#cy.boxSelectionEnabled(bool)
// Enable or disable box selection
cy.boxSelectionEnabled(bool: boolean): thisSet whether the box-selection gesture is available.
| Name | Description |
|---|---|
bool: boolean | the new setting |
Returns
thisthis core, for chaining
Example
const result = cy.boxSelectionEnabled(true);console.log(result === cy); // true