javascript - wait for Frame to Load in IE10 Selenium WebDriver IJAVASCRIPTEXECUTER C# -


I'm trying to wait for the frame to load before proceeding ...

< P> IJavaScriptExecuter Usage C #

string returns iframeLoad = @ "function () {if (iframe.load) {return true;}}"; IList & LT; IWebElement & gt; Frames = Driver.Fund Elements (by tagname ("iframe")); (For int i = 0; i

Please guide me

Finally a way to me Found:

  Wait. Unless the & lt; Bool & gt; ((D) = & gt; {try {return (bool) driver) .ExecuteScript (@ "window.onload = function () {}; true back;");} hold {return false;}} );  

Window.load will wait until all frames and resources are loaded


Comments