dogtail-devel Question on dogtail and kpdf
- From: "indhu krishna sivaramakrishnan" <indhu list gmail com>
- To: dogtail-devel-list gnome org
- Subject: dogtail-devel Question on dogtail and kpdf
- Date: Sat, 29 Jul 2006 09:59:53 -0400
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 treefrom dogtail.utils
import runfrom time import sleepfrom 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 buttonopenbutton.click()
Can someone please help me on this?
Regards,
Indhu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]