Hi LDTP help,
 First I wanna to say thanks for such a nice tool for automation . I need a
help on below scenario

Scenario:
-Launch firefox with some webaddress(ex:google.com)
-Click on Bookmarks mnu item->Bookmarkthis page
-One dialsog winow will be opened
-In that dialog window I have to click "Done" button

My scritp onn the above scenario is ->

Till clicking to Bookmarkthis page I'm successding .After dialog window
appers there I'm failing.Please help me how to solve this issue

Note 1 :I'm new to LDTP & Python
Note2:Script is attached

thanks in advance,
Raja
#Adding bookmark
#!/usr/bin/python
import ldtp
from ldtp import *
import os
import sys

#launching gmail webaddress

os.system('firefox www.gmail.com &')
time.sleep(3)

#verifying opened webaddress 
if guiexist('frmGmail:EmailfromGoogle-MozillaFirefox') == 0: 
	print >> sys.stderr, "window is not opened" ; 
	sys.exit(1)

#Adding bookmark 

selectmenuitem('frmGmail:EmailfromGoogle-MozillaFirefox','mnuBookmar*;BookmarkThisPage')
wait(2)

#the below step i'm getting problem
click('dlgEdi*','btnDone')

exit()







_______________________________________________
LDTP-dev mailing list
LDTP-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/ldtp-dev

Reply via email to