All pastes #181921 Raw Edit

Miscellany

public python v1 · immutable
#181921 ·published 2006-09-25 14:26 UTC
rendered paste body
#!/usr/bin/env pythonfrom ldtp import *from ldtputils import *log('Firefox Minefield Test Report','begin')firefox3=LdtpDataFileParser('firefox3.xml')try:		firefoxPath='firefox'	launchPath = firefox3.gettagvalue('launchpath')	if launchPath != []:        	firefoxPath = launchPath[0] + '/' + firefoxPath)	#Tools Menu	waittillguiexist('*-Minefield')	#FIXME implement the websearch	selectmenuitem('*-Minefield','mnuTools;mnuWebSearch')		selectmenuitem('*-Minefield','mnuTools;mnuDownloads')	print "Downloads item selected"	waittillguiexist('dlgDownloads')	#WARNING: Throws up an exception if the 'Downloads' is clean	#click('dlgDownloads','btnCleanUp')		selectmenuitem('*-Minefield','mnuTools;mnuAdd-ons')	print "Add-ons menu selected"	waittillguiexist('dlgAdd-ons')	#closeappwindow('dlgAdd-ons')		selectmenuitem('*-Minefield','mnuTools;mnuErrorConsole')	print "Error Console selected"	waittillguiexist('dlgErrorConsole')	#closeappwindow('dlgErrorConsole')		#FIXME: Automate the entire dialog	selectmenuitem('*-Minefield','mnuTools;mnuDOMInspector')	print "DOM inspector selected"	waittillguiexist('dlgDOMInspector')		selectmenuitem('*-Minefield','mnuTools;mnuPageInfo')	print "Page Info selected"	waittillguiexist('dlgPageInfo')	#FIXME: Automate the dialog here		#TODO: Automate the tools menu for extensions if possibleexcept LdtpExecutionError:	log('Firefox 3.0 automation failed','fail')	log('Firefox Minefield Testing Stopped','end')