LDTP
3.5.0
|
verifyscrollbar('<window name>', '<scroll bar name>')
Checks whether the given object is scrollbar or not, also we can check whether scroll bar object is available or not
1 | on success, else 0 |
Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/value.py
Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/value.py
Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Scrollbar.cs
With respect to gedit application
from ldtp import *
verifyscrollbar('*-gedit', 'scbr0') # assuming that the file currently opened content is more than one page, else the scrollbar object will not be created by accessibility interface