//New Window PopUp
var mywindow;
function spawnwindow(a,b,c)
{
mywindow=window.open(a,b,c);
if (window.focus) {mywindow.focus()}
}
//End
There a button on the web page which calls function spawnwindow(a,b,c) which causes the error
so here what I did, I dont click the button at all> I just execudete javascript from selenium code calling the function spawnwindow(a,b,c) instead. and passing the required vaviables into the function.
((IJavaScriptExecutor) driver).ExecuteScript(jscript);
That's it folks
The Dreamer