text: 
  ##############################################################################
  # Written by:  Cachen Chen <cachen@novell.com>
  # Date:        09/25/2009
  #              Application wrapper for Moonlight combobox
  #              Used by the combobox-*.py tests
  ##############################################################################
  
  'Application wrapper for Moonlight combobox'
  
  from strongwind import *
  
  from os.path import exists, dirname
  from sys import path
  
  init_dir = path[0]
  uiaqa_path = dirname(dirname(init_dir))
  # Variable the path of Firefox to run the application, Please install
  # Firefox3.5.1 first which is accessible by accerciser
  firefox_path = '/usr/bin/firefox'
  
  def launchComboBox(exe=None):
      '''Launch Moonlight combobox with accessibility enabled and return a
       combobox object.  Log an error and return None if something goes wrong'''
  
      if exe is None:
          # make sure we can find the sample applications
          exe = '%s/samples/moonlight/ComboBox/ComboBoxSample.html' % uiaqa_path
          if not exists(exe):
            raise IOError, "Could not find file %s" % exe
  
      args = [firefox_path, exe]
  
      (app, subproc) = cache.launchApplication(args=args, name="Firefox", \
                                                          wait=config.LONG_DELAY)
      combobox = ComboBox(app, subproc)
  
      cache.addApplication(combobox)
  
      combobox.comboBoxFrame.app = combobox
  
      return combobox
  
  # class to represent the application
  class ComboBox(accessibles.Application):
      #checkShowing=False
      def __init__(self, accessible, subproc=None):
          'Get a reference to the ComboBox window'
          super(ComboBox, self).__init__(accessible, subproc)
  
          self.findFrame(re.compile('^ComboBoxSample'), logName='Combo Box')
  
  