dogtail-devel Question on dogtail and kpdf



Hi,

I am a graduate student trying to use dogtail as a GUI benchmarking tool.
I tried out the example python script with gedit and it works fine. But when I try to run it for kpdf, it does not work. Is there a different class for kpdf?
Is there any place where the classes are documented?

I am just trying to open a pdf document. The folliwng code justs opens the kpdf viewer but does not recognize the rest of the commands. I have pasted the code here:

#!/usr/bin/env python
# Dogtail demo script using tree.py
# FIXME: Use TC.
__author__ = 'Zack Cerza <zcerza redhat com'

from dogtail import tree
from dogtail.utils import run
from time import sleep
from os import environ, path, remove
environ['LANG']='en_US.UTF-8'

# Start kpdf.
run("kpdf")

# Get a handle to kpdf's application object.
kpdf = tree.root.application('kpdf')

# Get a handle to kpdf's File menu.
filemenu = kpdf.menu('File')

# Get a handle to kpdf's Save button.
openbutton = kpdf.button('Open')

# Click the button
openbutton.click()

Can someone please help me on this?

Regards,
Indhu


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]