sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34704
Re: [Question #271628]: how to Close All IE which have opened before open a new IE ?
Question #271628 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271628
YongJianYan gave more information on the question:
my code is following , but fail:
# -*- coding: utf-8 -*-
import org.sikuli.script
if __name__=='__main__':
Debug.on(3)
ie = App("C:\\Program Files\\Internet Explorer\\iexplore.exe")
wait(5)
#ie.focus()
#wait(3)
for n in range(100):
if ie.window(n):
print 'ie is running'
ie.window(n).close()
else:
print 'ie is not running'
break
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.