We want to search elements with a certain class, using this example:
<div class="class-1"></div><div class="class-1 class-2"></div><div class="class-1 class-2 class-3"></div><div class="class-2 class-11"></div>
To get the size from a WebElement ( element from now ), you just need to access through the variable class size :
size
>> element.size{'width': 100, 'height': 200}>> element.size['width']100>> element.size['height']200