All pastes #139484 Raw Edit

Something

public text v1 · immutable
#139484 ·published 2006-08-20 00:16 UTC
rendered paste body
#!/usr/bin/env python
# Jokosher Unit Test
__author__ = 'Jono Bacon <jono@jonobacon.org>'

from dogtail.procedural import *
from dogtail.utils import *
from dogtail.distro import *
from dogtail.version import Version

appName = "Jokosher"
run("Jokosher", appName=appName)


print "----------- BEGIN UNIT TEST OUTPUT -------------------"
print "foo"

focus.application(appName) #FIXME: shouldn't 'run' automatically scope the app?  this call seems to be needed

print "bar"

focus.menu('File')
click('New')

#focus.dialog('Open File')  # fails on FC3: the dialog has roleName="file chooser", rather than 'dialog'
#focus.text()
#focus.widget.object.text = "test-word-document.doc"
# FIXME: path issues

#click('OK')
#
#focus.menu('File')
#click('Save As...')