from ldtp import * from ldtputils import * def savePage(name = None, path = None): selectmenuitem ('frm*GranParadiso', 'mnuFile;mnuSavePageAs') if waittillguiexist('SaveAs') == 0: msg = 'Save as window does not exist' log(msg, 'error') raise LdtpExecutionError(msg) if name != None: setextvalue ('dlgSaveAs', 'txtName', name [0]) if path != None: comboselect ('dlgSaveAs', 'cboSaveinfolder', path [0]) click ('dlgSaveAs', 'btnSave')