LDTP  3.5.0
 All Pages
decrease

Syntax

decrease('<window name>', '<slider name>', <number of iterations>)

Description

Decrease the value of the slider 'n' times, where 'n' is the number of iterations specified in the argument field.

ImplementationDetails

Decreases the value if it does not fall below the minimum limit, else fails.

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/Value.cs

Example

from ldtp import *

For slider component with respect to gnome-terminal

decrease('dlgEditingProfile"Default"', 'slider', 3)

Author
Aishwariya & Kamakshi poorv.nosp@m.aish.nosp@m.oo@ya.nosp@m.hoo..nosp@m.com


Linux Desktop Testing Project