how can I check frontend button sizes, logos, and images are loading or not?

3 Answers 3


You can look at the CSS values associated with an element.

enter image description here


You can check size of an element with:

driver.findElement(By.cssSelector(".example css[selector]")).getSize();

Yes you can check if the element is visible on DOM or not by explicit wait.(wait untill visibility of element) and for size i think you should to get size of that webelement by cssvalue!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.