firefox - javascript / selenium: get the window from the document object -


I am writing user extensions for selenium. I have document How can I get the window of the window?

Post-text "itemprop =" text ">

This document.parentWindow is in IE; This is document.defaultView in Mozilla.

In this way you can do something like

  function getDocWindow (doc) {return doc.parentWindow || Doc.defaultView; }  

Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

.net - Self Tracking Entities (STE)'s and partial updates with EF4 and mVC2 -