how can I check frontend button sizes, logos, and images are loading or not?
3 Answers
You can look at the CSS values associated with an element.
driver.findElement(By.id(ID)).getCssValue("height");
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
!