can\'t make the popup in IE and FF run to work
I've been reading and looking, but I still can't understand how to make the pop up window run.
When I run my recording on FF I get a message "[warn] Opening window '_blank', which is not a real window name. Randomizing target to be: selenium_blank45182".
And when I run on IE8 I get an error message permission denied. The popup gets a dynamic value. When I record I get the popup window name as _blank (the error is seen as soon as the popup open up).
Can anyone tell me how to handle/identify the popup on IE8?
Re: can\'t make the popup in IE and FF run to work
I am able to switch to a newly-opened window, regardless of the name of the window. It takes five steps:
1) Get the name of all window handles - name the variable handlesBefore.
2) Open a new window.
3) Get the name of all window handles, name the variable handlesAfter.
4) Create a new string variable (newHandle) that's essentially handlesAfter minus handlesBefore. The only thing remaining is your newly created window handle.
5) Switch to the window using the variable newHandle.
var handlesBefore = driver.WindowHandles;
// REPLACE THIS LINE with action that opens new window
var handlesAfter = driver.WindowHandles;
string newHandle = handlesAfter.Except(handlesBefore).Single();