Forum Discussion
jmcpeek
12 years agoContributor
Tanya,
Your code didn't help. The first 3 times I ran it, I got 3 different results. The first time, it closed IE, but didn't re-open it. The second time, it didn't close or re-open IE. The third time, it did what it was supposed to.
I decided to simplify it a little and just changed the last block to this:
Your code didn't help. The first 3 times I ran it, I got 3 different results. The first time, it closed IE, but didn't re-open it. The second time, it didn't close or re-open IE. The third time, it did what it was supposed to.
I decided to simplify it a little and just changed the last block to this:
if Sys.WaitBrowser(browsername).Exists then
'The browser is running
log.event "exists"
'sys.Browser(browsername).Close
'Browsers.Item(browsername).Run
else
log.event "doesn't exist"
end if
I ran this 5 times and every time it logged "doesn't exist", even though IE was open the entire time. I then decided to restart TC. The next 5 times I ran it, it found IE every time. Do I need a sys.refresh or something at the start to help it along?
I'll note that since this problem first came up, I have a new computer with a fresh install of IE10 and TC 9.31.