Welcome to the nightmare that is working out when a page has actually loaded. Should it be:
· When a page has finished downloading from the server -> if so how long do we need to stop downloading data for us to know it has finished?)
· Should it be when the DOM has been created -> What if the DOM is modified after creation?
· Should it be when JavaScript processing has completed -> What about AJAX? What about reloading Adverts? What about Heatmapping analytics? (And a million other JavaScript things that could happen at any time)
You could try sending over a “return document.readyState == 'complete';" using the JavaScrip executor but YMMV.
Have a look at this thread:
https://groups.google.com/d/topic/selenium-developers/WuqiU7cKOTk/discussion
It should give a much better rounded view of what I’ve said above.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-developers/-/-xNKcRSAALcJ.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
M.
To post to this group, send email to selenium-developers@googlegroups.com.
To unsubscribe from this group, send email to selenium-developers+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-developers@googlegroups.com.
To unsubscribe from this group, send email to selenium-developers+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-developers@googlegroups.com.
To unsubscribe from this group, send email to selenium-developers+unsub...@googlegroups.com.
If you are using a JavaScript framework like jQuery they should have something to help you.
jQuery has a:
jQuery.isReady -> True when DOM is loaded.
jQuery.active -> 0 when no AJAX is being processed.
You could also have a look at :
M.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-developers/-/77Pu48wnlZUJ.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.