[wtr-general] Re: Find the parent window of a javascript prompt
Thnkas Tony. I will look into it. Would you provide a sample code snippet? Regards Siva On Jul 20, 2:04 pm, Tony ynot...@gmail.com wrote: Hi Siva, Not possible to get the popup text through the autoit or win32ole. You can however get the text through from the dialog box dom using javascript. Thanks, Tony On Jul 19, 8:16 pm, sHiVa krapa.ph...@gmail.com wrote: Tony, Are you able to get the popup text using Autoit when the popup is resulted from Firefox?. When i tried to get it popup text is displyes as blank. Regards Siva On Jul 17, 8:43 pm, Tony ynot...@gmail.com wrote: Hi, Working on getting a common way to handle popups in IE and Firefox. Iam done with handling popups in IE. In Firefox iam able to handle javscript popups, (alert, confirm, prompt and auth dialog). The issue is how do i know the popup is a child to the window which is under test.(firewatirs WINDOW_VAR) If there are more than 1 popup, then i would not know which popup to handle. Does any one know how to get the window from which the javascript popup was created, so that i could compare the object to the window firewatir is using and then handle it? Right now i use latest created window(window most recently created) and assume this is the popup which doesnt seem to be a good solution. Thanks, Tony- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Find the parent window of a javascript prompt
Hi Tony, How is it possible to get text of the pop-up through dialog box dom. My requirement is to pick text from pop-up which appears when user submits the login form without entering or with invalid data. Regards D G On Jul 20, 2:04 pm, Tony ynot...@gmail.com wrote: Hi Siva, Not possible to get thepopuptextthrough the autoit or win32ole. You can however get thetextthrough from the dialog box dom using javascript. Thanks, Tony On Jul 19, 8:16 pm, sHiVa krapa.ph...@gmail.com wrote: Tony, Are you able to get thepopuptextusing Autoit when thepopupis resulted from Firefox?. When i tried to get itpopuptextis displyes as blank. Regards Siva On Jul 17, 8:43 pm, Tony ynot...@gmail.com wrote: Hi, Working on getting a common way to handle popups in IE and Firefox. Iam done with handling popups in IE. In Firefox iam able to handle javscript popups, (alert, confirm, prompt and auth dialog). The issue is how do i know thepopupis a child to the window which is under test.(firewatirs WINDOW_VAR) If there are more than 1popup, then i would not know whichpopupto handle. Does any one know how to get the window from which the javascript popupwas created, so that i could compare the object to the window firewatir is using and then handle it? Right now i use latest created window(window most recently created) and assume this is thepopupwhich doesnt seem to be a good solution. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Find the parent window of a javascript prompt
Hi Siva, Not possible to get the popup text through the autoit or win32ole. You can however get the text through from the dialog box dom using javascript. Thanks, Tony On Jul 19, 8:16 pm, sHiVa krapa.ph...@gmail.com wrote: Tony, Are you able to get the popup text using Autoit when the popup is resulted from Firefox?. When i tried to get it popup text is displyes as blank. Regards Siva On Jul 17, 8:43 pm, Tony ynot...@gmail.com wrote: Hi, Working on getting a common way to handle popups in IE and Firefox. Iam done with handling popups in IE. In Firefox iam able to handle javscript popups, (alert, confirm, prompt and auth dialog). The issue is how do i know the popup is a child to the window which is under test.(firewatirs WINDOW_VAR) If there are more than 1 popup, then i would not know which popup to handle. Does any one know how to get the window from which the javascript popup was created, so that i could compare the object to the window firewatir is using and then handle it? Right now i use latest created window(window most recently created) and assume this is the popup which doesnt seem to be a good solution. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Find the parent window of a javascript prompt
Tony, Are you able to get the popup text using Autoit when the popup is resulted from Firefox?. When i tried to get it popup text is displyes as blank. Regards Siva On Jul 17, 8:43 pm, Tony ynot...@gmail.com wrote: Hi, Working on getting a common way to handle popups in IE and Firefox. Iam done with handling popups in IE. In Firefox iam able to handle javscript popups, (alert, confirm, prompt and auth dialog). The issue is how do i know the popup is a child to the window which is under test.(firewatirs WINDOW_VAR) If there are more than 1 popup, then i would not know which popup to handle. Does any one know how to get the window from which the javascript popup was created, so that i could compare the object to the window firewatir is using and then handle it? Right now i use latest created window(window most recently created) and assume this is the popup which doesnt seem to be a good solution. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---