[LDTP-Dev] Operate Windows 8 Metro app by LDTP(Cobra)
Zhi Lin
linzhi1998 at hotmail.com
Tue Mar 5 19:33:43 PST 2013
Great to see that Cobra can support Metro app, thanks guys.
From: John Yingjun Li
Sent: Wednesday, March 06, 2013 11:31 AM
To: ldtp-dev at lists.freedesktop.org
Subject: [LDTP-Dev] Operate Windows 8 Metro app by LDTP(Cobra)
Hi all,
Operate Windows 8 Metro app by LDTP(Cobra)
Below are some demo code:
from ldtp import *
# Open start window from desktop
size = getobjectsize('ProgramManager', 'lstDesktop')
generatemouseevent(size[2], 0, 'abs')
waittillguiexist('frmCharms')
click('frmCharms', 'btnStart')
# Open Mail program from start window and click Save button
waittillguiexist('paneStartmenu')
click('paneStartmenu', 'lstMail')
waittillguiexist('frmMail')
print getobjectlist('frmMail')
click('frmMail', 'btnSave')
Thanks,
John
--------------------------------------------------------------------------------
_______________________________________________
LDTP-dev mailing list
LDTP-dev at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20130306/7ba9aaa4/attachment.html>
More information about the LDTP-dev
mailing list