[LDTP-Dev] Operate Windows 8 Metro app by LDTP(Cobra)
John Yingjun Li
yjli at vmware.com
Tue Mar 5 19:31:58 PST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20130305/259600d1/attachment.html>
More information about the LDTP-dev
mailing list