#!/usr/bin/python # # Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp # # Author: # S. Aginesh # A. Nagappan # # Copyright 2004 Novell, Inc. # # This script is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # # Throbber icon on the upper-right log ('Throbber Icon', 'teststart') click ('MozillaFirefox','btnGototheNovellhomepage') status = 0 try: click ('MozillaFirefox','btnGototheNovellhomepage') status = verifysettext ('MozillaFirefox', 'txtUrl', 'http://www.mozilla.org/products/firefox/central.html') if status == 1: log ('Throbber Icon works', 'pass') else: log ('Clicking throbber icon does not load the required url', 'fail') except: log ('Throbber icon test failed', 'fail') log ('Throbber Icon', 'testend') if status != 1: raise LdtpExecutionError (0)