Colin_McCrae
11 years agoCommunity Hero
contentDocument.readyState always "complete" in Chrome?
Hi
I think this has come up before, but I didn't find any workarounds that I liked the look of?
I have a global function I use to wait for pages to load. As you might guess by the thread title, it does this by waiting for the readyState of the page to go to "complete".
It works perfectly with IE, but Chrome (v35) always returns "complete" while it's still loading.
From what I gather, this is a Chrome issue?
Does anyone have any other suggestions to work round this? The two browsers I have to test the site with are Chrome and IE so I'm trying, where possible, to use solutions that will work with both.
The page that's causing me real problems is a search page with a table on it. You do a search, the table contains the results. Problem being, none of the page elements change or are removed while the search happens. So I can't wait until an object appears or vanishes as they are all present, all the time, and only change when it re-renders the page on completion of the search. The browser does indicate that it's loading though and the readyState property of the page updates correctly for IE. But not for Chrome. So searches in Chrome are just a mess as it all gets way too far ahead of itself.
Grrrrrr. I hate Chrome.
(TestComplete v10.20 and I'm using VBScript)
I think this has come up before, but I didn't find any workarounds that I liked the look of?
I have a global function I use to wait for pages to load. As you might guess by the thread title, it does this by waiting for the readyState of the page to go to "complete".
It works perfectly with IE, but Chrome (v35) always returns "complete" while it's still loading.
From what I gather, this is a Chrome issue?
Does anyone have any other suggestions to work round this? The two browsers I have to test the site with are Chrome and IE so I'm trying, where possible, to use solutions that will work with both.
The page that's causing me real problems is a search page with a table on it. You do a search, the table contains the results. Problem being, none of the page elements change or are removed while the search happens. So I can't wait until an object appears or vanishes as they are all present, all the time, and only change when it re-renders the page on completion of the search. The browser does indicate that it's loading though and the readyState property of the page updates correctly for IE. But not for Chrome. So searches in Chrome are just a mess as it all gets way too far ahead of itself.
Grrrrrr. I hate Chrome.
(TestComplete v10.20 and I'm using VBScript)