2

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).

Is this possible to do with JavaScript or even Selenium?

Shog9
  • 152,046
  • 34
  • 225
  • 232
  • possible duplicate of [Check whether HTML element has scrollbars](http://stackoverflow.com/questions/4880381/check-whether-html-element-has-scrollbars) – Shog9 Mar 03 '11 at 19:23

1 Answers1

0

Try using scrollWidth and clientWidth properties. See this thread for more info

Bill the Lizard
  • 386,424
  • 207
  • 554
  • 861
GotAmye
  • 359
  • 2
  • 5
  • 18