How to determine actual font size using Selenium WebDriver with Java

Viewed 16160

If my font-size is set to be X-Large and I want to test how many pixels that is on a particular browser using Selenium WebDriver. How would I do that?

The idea is to check if the font size falls within a particular range of allowed font-sizes for our window size.

1 Answers
Related