1
class PresentationCrack:
2
"""Gives a presentation of Dogtail, using Dogtail itself."""
5
self.evo = EvolutionApp()
9
def startPage(self, title):
10
sleep (self.pageDelay)
12
self.composer = self.evo.composeEmail()
13
self.composer.subject = "Presentation page %s"%self.pageNumber
15
self.composer.setHtml(True)
17
self.composer.setHeader(1)
18
self.composer.htmlNode.text = title
19
self.composer.htmlNode.typeText("\n\n")
21
def addBullet(self, text):
22
self.composer.child("Bulleted List").click()
23
self.composer.htmlNode.typeText(text)
25
def runPresentation(self):
26
self.startPage("Dogtail: a Free Automated GUI test tool")
30
self.startPage("Leveraging Synergies")
31
self.addBullet("pirates!")
32
self.addBullet("zombies!")
33
self.addBullet("zombie pirates!")
35
self.startPage("4-Stroke Internal Combustion Engine")
36
self.addBullet("suck")
37
self.addBullet("squeeze")
38
self.addBullet("bang")
39
self.addBullet("blow")
41
self.startPage("Questions?")
43
def runPresentationCrack():
44
pres = PresentationCrack()
45
pres.runPresentation()
47
runPresentationCrack()