def verifypushbutton (windowname, component_name): """ Verify whether the given object is push button or not. INPUT: verifypushbutton ('', '') 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