tag:blogger.com,1999:blog-4065813838796681997.post3934344985404812912..comments2023-03-28T12:31:44.912-04:00Comments on QA & Testing: How to find a popup window if it does not have a nameDarrellhttp://www.blogger.com/profile/18232752184374702137noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-4065813838796681997.post-20164123125306242022013-04-01T02:33:09.815-04:002013-04-01T02:33:09.815-04:00That's Good Approach to handle Pop-up.
I'...That's Good Approach to handle Pop-up.<br /><br />I'm currently facing problem with the flash player settings .<br /><br />Could you please let me know, how to handle for those kind of pop-up.<br /><br />Because selenium IDE is not recognizing the actions ,which i'm doing on that window.<br /><br />kishorehttps://www.blogger.com/profile/06189532245509382788noreply@blogger.comtag:blogger.com,1999:blog-4065813838796681997.post-31545807312869456792013-02-25T04:28:34.942-05:002013-02-25T04:28:34.942-05:00where is getPopupWindowHandle defined?where is getPopupWindowHandle defined?v!ק(&)ї ภhttps://www.blogger.com/profile/08190070368504224566noreply@blogger.comtag:blogger.com,1999:blog-4065813838796681997.post-56793809204369183182012-08-31T06:22:51.315-04:002012-08-31T06:22:51.315-04:00Thanks Darrel for the post,
I am having problem i...Thanks Darrel for the post,<br /><br />I am having problem in handling popups in my application,<br />I have put SOP(driver.getWindowHandles.size())<br />before and after popup is opened ,<br />the value remains 1<br /><br />So driver is not getting any popup to switch.<br />Please help me in fixing this issue, as it becomes bottleneck for my testingDeepika Singhhttps://www.blogger.com/profile/03735050506505371535noreply@blogger.comtag:blogger.com,1999:blog-4065813838796681997.post-21379416402306759822012-08-31T06:20:17.925-04:002012-08-31T06:20:17.925-04:00This comment has been removed by the author.Deepika Singhhttps://www.blogger.com/profile/03735050506505371535noreply@blogger.comtag:blogger.com,1999:blog-4065813838796681997.post-23373829121127645892012-07-26T00:19:15.266-04:002012-07-26T00:19:15.266-04:00Thanks a ton. It perfectly worked.Thanks a ton. It perfectly worked.Shahulhttps://www.blogger.com/profile/17587119311638072884noreply@blogger.comtag:blogger.com,1999:blog-4065813838796681997.post-57614161038055435422012-07-25T08:11:14.172-04:002012-07-25T08:11:14.172-04:00Shahul,
The code helps you to find a new popup wi...Shahul,<br /><br />The code helps you to find a new popup window. It is not meant to help you navigate a sequence of popups. Your example is missing some details. If you actual mean:<br /><br />1. go to main window<br />2. click something which opens first popup window<br />3. go to first popup window<br />4. click something which opens second popup window<br />5. interact with second popup window<br />6. close second popup window<br />7. go to first popup window<br />8. close first popup window<br />9. go to main window<br /><br />My code would be used as follows:<br /><br />String mainHandle = driver.getWindowHandle();<br />WebElement firstPopup = driver.findElement(...);<br />String firstPopupHandle = getPopupWindowHandle(driver, firstPopup); // does click<br />driver.switchTo().window(firstPopupHandle);<br />WebElement secondPopup = driver.findElement(...);<br />String secondPopupHandle = getPopupWindowHandle(driver, secondPopup); // does click<br />driver.switchTo().window(secondPopupHandle);<br />// interact with second popup window<br />// do something to close second window<br />driver.switchTo().window(firstPopupHandle);<br />// do something to close first window<br />driver.switchTo().window(mainHandle);<br /><br />This assumes that the link/button to create the second popup window is on the first popup window. If you have any more questions, please post them to the WebDriver Google Group. It is easier to have an interactive conversation there.Darrellhttps://www.blogger.com/profile/18232752184374702137noreply@blogger.comtag:blogger.com,1999:blog-4065813838796681997.post-26860210274350448722012-07-25T02:53:14.668-04:002012-07-25T02:53:14.668-04:00Hi Darrell,
Your code works perfect with single po...Hi Darrell,<br />Your code works perfect with single popup window but could not able to use for multiple popup since the usage of <b>removeAll();</b> <br />Can you suggest a solution for multiple popup without using <b>iterator.next();</b> since it is not consistent on <b>InternetExplorerDriver();</b><br /><br />Flow in navigation order: <br />1.Main Window<br />2.First Popup Window<br />3.Second Popup Window<br />4.First Popup Window<br />5.Main WindowShahulhttps://www.blogger.com/profile/17587119311638072884noreply@blogger.comtag:blogger.com,1999:blog-4065813838796681997.post-60850422264043899282012-07-09T03:09:11.007-04:002012-07-09T03:09:11.007-04:00Thanks for the input. It helped a lot in shifting ...Thanks for the input. It helped a lot in shifting to new popup window which has no name.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4065813838796681997.post-35619570633852106452012-05-24T06:49:48.921-04:002012-05-24T06:49:48.921-04:00Hi,
Your Approach for handling Pop and Windows is ...Hi,<br />Your Approach for handling Pop and Windows is very much help full for me.<br /><br />Thanks<br /><br />Happy TestingAnonymoushttps://www.blogger.com/profile/03360010142875193072noreply@blogger.com