Hi folks,
I am new to the selenium. I am testing a website which has a button. Upon clicking on the buttion it opens a new window. But the strange thing is that it doesn't have any window Id or name. I tried to select it using the title but no Luck..
Here is the code that opens the New window
<button onclick='window.open("
http://google.co.in","","toolbar=no,status=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,width=1000,height=600,top=80,left=80");'>Popup</button>
I tried the following things..
getAllWindowTitles()[1]
getAllWindowNames()[1]
getAllWindowIds()[1]
with waitForPopUp and selectWindow but It's always fails to select the window..
Please let me know if there is any way to select the window