All pastes #184042 Raw Edit

richee

public text v1 · immutable
#184042 ·published 2006-09-27 14:12 UTC
rendered paste body
log('Firefox 3.0', 'teststart')
firefox3 = LdtpDataFileParser ()
try:
    firefox3.setfilename('firefox3.0.xml')
    launchPath = firefox3.gettagvalue('launchpath')
    profile2use = firefox3.gettagvalue('spooky')
    firefoxPath = 'firefox'
    if launchPath != []:
        firefoxPath = launchPath[0] + '/' + firefoxPath
    if profile2use != []:
        firefoxPath = firefoxPath + ' -P ' + profile2use[0]
    launchapp(firefoxPath, 1)

    # Waiting for firefox to shoot up
    waittillguiexist('*-Minefield')


    # Opening the Edit->Preference Window, in either condition of blank page or a home page which is set
    try:
        selectmenuitem('*-Minefield', 'mnuEdit;mnuPreferences')
    except LdtpExecutionError:
        selectmenuitem('*Minefield', 'mnuEdit;mnuPreferences')

except LdtpExecutionError, msg:
    log('Firefox 3.0 automation script execution: ' + str(msg), 'fail')
    log('Firefox 3.0', 'teststop')