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
  • 156,901
  • 35
  • 231
  • 235
  • 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
  • 398,270
  • 210
  • 566
  • 880
GotAmye
  • 369
  • 2
  • 5
  • 18