~ubuntu-branches/debian/experimental/dogtail/experimental

« back to all changes in this revision

Viewing changes to examples/evolution-test-switching-components.py

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Garcia Sogo
  • Date: 2006-12-16 10:57:30 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20061216105730-utt6mcidfssawo7j
Tags: 0.6.1-3
pyhton-at-spi has to be added as dependency (Closes: #402752)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# Dogtail demo script
3
 
__author__ = 'David Malcolm <dmalcolm@redhat.com>'
4
 
 
5
 
# Test repeatedly switching between evolution components
6
 
#
7
 
# Assumes evolution is configured and is running
8
 
#
9
 
 
10
 
# Use the gettext translations sniffed from the package db:
11
 
import dogtail.i18n
12
 
dogtail.i18n.loadTranslationsFromPackageMoFiles('evolution')
13
 
 
14
 
import dogtail.tree
15
 
 
16
 
evo = dogtail.tree.root.application('evolution')
17
 
 
18
 
while True:
19
 
        for compName in ['Mail', 'Contacts', 'Calendars', 'Tasks']:
20
 
                evo.menu('View').menu('Window').menuItem(compName).click()