// width() scaled by the current zoom — the on-screen width in CSS px
ele.renderedWidth(): number | undefinedwidth() scaled by the current zoom — the on-screen width in CSS px.
Returns
number | undefinedthe rendered width, or undefined when empty or removed
Example
cy.zoom(2);console.log(cy.getElementById('a').renderedWidth()); // 60