~ubuntu-branches/ubuntu/utopic/dogtail/utopic

« back to all changes in this revision

Viewing changes to dogtail/apps/wrappers/mozilla.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-12-21 13:33:47 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20061221133347-xo9jg11afp5plcka
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
"""Wrapper code to help when scripting Mozilla apps
2
 
 
3
 
Author: David Malcolm <dmalcolm@redhat.com>"""
4
 
 
5
 
__author__ = 'David Malcolm <dmalcolm@redhat.com>'
6
 
 
7
 
from dogtail.tree import *
8
 
from dogtail.distro import packageDb
9
 
from dogtail.apps.categories import *
10
 
 
11
 
class MozillaApp(Application):
12
 
        """Useful test hooks for mozilla application testcases (Firefox, Thunderbird)"""
13
 
        def __init__(self):
14
 
                Application.__init__(self, root.application("mozilla"))
15
 
 
16
 
                self.version = packageDb.getVersion("firefox")
17
 
                print "Firefox version %s"%self.version
18
 
 
19
 
class FirefoxApp(MozillaApp, WebBrowser):
20
 
        """Utility wrapper for Firefox; implements the Webbrowser mixin interface"""
21
 
 
22
 
class ThunderbirdApp(MozillaApp, EmailClient):
23
 
        """Utility wrapper for Thunderbird; implements the EmailClient mixin interface"""