I am finding difficulties to get the driver when popup appears. when I click a button, then it will open another browser window. can someone give me the tips how to get the driver on the popup browser? thank you
Asked
Active
Viewed 40 times
0

Hendrione
- 225
- 1
- 5
- 18
-
1Please show the code you are using and explain the error or issue you are facing. – JeffC Sep 28 '16 at 14:01
-
1Resolved: You see the same question and answer at: http://stackoverflow.com/questions/19403949/how-to-handle-pop-up-in-selenium-webdriver-using-java – Vy Do Sep 28 '16 at 14:30
-
got the answer here : [How to handle pop up in selenium webdriber using java](http://stackoverflow.com/questions/19403949/how-to-handle-pop-up-in-selenium-webdriver-using-java) – Hendrione Sep 30 '16 at 11:08
2 Answers
-1
Please review again, this may be iframe, Please inspect with fire bug properly,and if page have iframe , then code with frame related property. If you feel again problem, please share the more information about code.

Anupam Singh
- 62
- 2
-
no it is not iframe. already check using firebug/firepath. when I inspect the pop up, it open another firebug/firepath. it is a fresh new html document / webpage. – Hendrione Sep 28 '16 at 10:40
-
then it should be manage by window handles properties. String obj= driver.getWindowHandle(); driver.findElement(By.name("dob no")).sendKeys("12345"); – Anupam Singh Sep 28 '16 at 10:51
-1
You can read more about iFrames and do something like this driver.switchtoiFrame. You will have to read its HTML to find it out if thats an iFrame, else if its a Pop-up then you need to switch to that Popup first

Suvin Ganjoo
- 21
- 7
-
no it is not iframe. already check using firebug/firepath. when I inspect the pop up, it open another firebug/firepath. it is a fresh new html document / webpage – Hendrione Sep 28 '16 at 10:40