LDTP  3.5.0
 All Pages
getaccesskey

Syntax

getaccesskey('<window name>'[, '<component name>'])

Description

Will return access key, if available

Return values
Stringwith access key on success, LdtpExecutionError exception on failure

Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/core.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/core.py

Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Generic.cs

Example

from ldtp import *

Print access key of OK button in Preferences window

print getaccesskey("Preferences", "btnOK")

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project