views:

564

answers:

2

Is this possible to do with JavaScript or even Selenium?

A: 

Are you creating an extension or writing a webpage?

GotAmye
I'm testing a web application. This web application should never have a horizontal scrollbar (as it resizes automatically). I want to test whether or not the horizontal bar exists.. (it should not).
A: 

In that case, try using scrollWidth and clientWidth properties. See this thread for more info

GotAmye