All pastes #183118 Raw Edit

richee

public text v1 · immutable
#183118 ·published 2006-09-26 16:50 UTC
rendered paste body
from ldtp import *
from ldtputils import *

# Launching firefox with a profile name with the path specified in firefox3.0.xml file

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')

    xyz = ldtp.getobjectlist('*-Minefield')
    print 'Hey! the objects are :', xyz

    # Opening the Edit->Preference Window
    wait(3)
    selectmenuitem('*-Minefield', 'mnuEdit;mnuPreferences')