getSize
Get the width and height for an DOM-element.
Usage
browser.getSize(prop)
Parameters
| Param | Type | Details | 
|---|---|---|
| prop optional | param | size to receive [optional] ("width" or "height") | 
Example
it('should demonstrate the getElementSize command', function () {
    browser.url('http://github.com')
    const logo = $('.octicon-mark-github')
    const size = logo.getElementSize()
    console.log(size) // outputs: { width: 32, height: 32 }
    const width = logo.getElementSize('width')
    console.log(width) // outputs: 32
    const height = logo.getElementSize('height')
    console.log(height) // outputs: 32
})