I have few questions on this as selenium always need windowid to get control over popup.
1-What is the best way to get the windowid of any popup.
3-is it necessary that we must get the windowid of the each & every popup in the view source of the page. if not so what will be work-around.
4-Is window id present in any java-script function? if so ,there is one example I didn’t get Window id of popup
script language=”javascript”
begin
function popup(){
window.open(‘URL/to/popup.html’,’PopupName’,’toolbar=0,location=0, status=0,menubar=0,scrollbars=0,resizable=0,width=345,height=400′); }
// end
/script
1 Answer