All pastes #36606 Raw Edit

Casanova

public text v1 · immutable
#36606 ·published 2006-01-12 18:47 UTC
rendered paste body
def 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