Is there anyway to get the bounds properties of element using appium

Hi ,
I have a requirement to scroll the posts one by one, so i have seen an option to get the bound properties of an element.

Is any way to get the bounds properties of an element using appium.please find the attached screenshot.

[el.getLocation().getX(), el.getLocation().getY()] // first [x,y]
[el.getLocation().getX() +el.getSize().getWidth(), el.getLocation().getY()+el.getSize().getHeight()] // second [x,y]
3 Likes