Casanova
public text v1 · immutabledef verifypushbutton (windowname, component_name):
""" Verify whether the given object is push button or not.
INPUT: verifypushbutton ('<window name>', '<component name>')
OUTPUT: Returns 1 if object is push button, else 0. """
if not (type (windowname) == type (component_name) == types.StringType):
raise SyntaxError
try:
data=socksend ('verifypushbutton',windowname,component_name)
except LdtpExecutionError, msg:
raise LdtpExecutionError (str (msg))
return 1