[wtr-general] Re: click_no_wait can not make the popup come out
Just for FYI to all. click_no_wait works with 1.8.6-26 Final Release. Its not working in 1.8.6-27 Thanks Satish On Apr 17, 8:02 am, bwaybandit lenridge...@gmail.com wrote: nothing to be embarassed about. just need to get it working :-) ok so in IE, when i use click_no_wait, check out the top of your browser. your popup is being blocked and you have to allow it access. i use IE6, and i have to click on a bar that appears at the top and select Allow Blocked Content. I am sure there is a IE security setting to get rid of this and I have not dug into this since I do not have an application where I need to mess with this. If that does not work, i will get on google talk with you and we can figure it out. On Apr 16, 11:40 pm, William s...@grandstream.com wrote: Also need to use click_no_wait method? I have told you that this method would not make the popup menu out,i don't know why.(there is a yelloa shadow on the button which show it attemp to do the click behavior),so anyother good advise? If you have a google talk ID,please join me ,I'm very boring for this and get embarrassment.Thanks!(my ID:s...@grandstream.com) On Apr 16, 10:56 pm, bwaybandit lenridge...@gmail.com wrote: This below will handle yoru javascript/vbscript popups. If they are native window popups then you have to resort to autoit require 'watir/ie' require 'watir/contrib/enabled_popup' # Main method to click a modal dialog button. def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end ie=Watir::Browser.new ie.goto C:\\test.html ie.button(:name, 'cmdClickMe').click_no_wait click_modal_button(ie) On Apr 16, 6:37 am, William s...@grandstream.com wrote: I still can not make it.If you have some good way to handle javascript popupmenu,please show me,thanks very much! On Apr 15, 9:54 pm, bwaybandit lenridge...@gmail.com wrote: a little confusion here. 1. when you use click_no_wait, do you see apopupand if you do, your code is not handing it, is that right? (reason i ask is because your initial comment was you could not see thepopup?) 2. in jsClick, you can remove the second parameter, since it is not being used at all. 3. When you are calling jsClick the third parameter does not render in ie or google, so not sure what you are passing in. Should be something like 'OK', 'Cancel'. etc Once you fix that, it should handle your popup On Apr 15, 9:33 am, William s...@grandstream.com wrote: Here is the method i handle thepopupmenu,maybe you can give some advise. def jsClick( ie,a, button, user_input=nil) waitTime=30 hwnd = ie.enabled_popup(waitTime) puts hwnd if (hwnd) w = WinClicker.new if ( user_input ) w.setTextValueForFileNameField(hwnd, #{user_input}) end sleep 3 w.clickWindowsButton_hwnd(hwnd, #{button}) w=nil end end def reboot(ie,unit_url,type) ie.maximize() ie.goto unit_url ie.text_field(:name,user).set admin ie.text_field(:name,pass).set admin ie.button(:id,login).click case type when 2 then begin ie.link(:url,unit_url+/cgi-bin/config).click end when 5 then begin ie.link(:url,unit_url+/config_tn.htm).click end end sleep 3 ie.button(:id,reboot).click_no_wait puts clicked #ie.button(:id,reboot).click jsClick(ie,@ie, 确定) puts The system(+unit_url+) is going to reboot... end On Apr 15, 9:30 pm, William s...@grandstream.com wrote: yes,if I use click it wouldpopup,but if i use this method i that it can not handle the javascriptpopupframe in my test. On Apr 15, 9:01 pm, bwaybandit lenridge...@gmail.com wrote: Does thepopupappear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but thepopupframe can not come out.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- 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
[wtr-general] Re: click_no_wait can not make the popup come out
Still failed,there is not a blocked frame.(click() method can make it out) join me into the buddy list with G-talk,please My ID:s...@grandstream.com. On Apr 17, 8:02 pm, bwaybandit lenridge...@gmail.com wrote: nothing to be embarassed about. just need to get it working :-) ok so in IE, when i use click_no_wait, check out the top of your browser. yourpopupis being blocked and you have to allow it access. i use IE6, and i have to click on a bar that appears at the top and select Allow Blocked Content. I am sure there is a IE security setting to get rid of this and I have not dug into this since I do not have an application where I need to mess with this. If that does not work, i will get on google talk with you and we can figure it out. On Apr 16, 11:40 pm, William s...@grandstream.com wrote: Also need to use click_no_wait method? I have told you that this method would not make thepopupmenu out,i don't know why.(there is a yelloa shadow on the button which show it attemp to do the click behavior),so anyother good advise? If you have a google talk ID,please join me ,I'm very boring for this and get embarrassment.Thanks!(my ID:s...@grandstream.com) On Apr 16, 10:56 pm, bwaybandit lenridge...@gmail.com wrote: This below will handle yoru javascript/vbscript popups. If they are native window popups then you have to resort to autoit require 'watir/ie' require 'watir/contrib/enabled_popup' # Main method to click a modal dialog button. def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end ie=Watir::Browser.new ie.goto C:\\test.html ie.button(:name, 'cmdClickMe').click_no_wait click_modal_button(ie) On Apr 16, 6:37 am, William s...@grandstream.com wrote: I still can not make it.If you have some good way to handle javascript popupmenu,please show me,thanks very much! On Apr 15, 9:54 pm, bwaybandit lenridge...@gmail.com wrote: a little confusion here. 1. when you use click_no_wait, do you see apopupand if you do, your code is not handing it, is that right? (reason i ask is because your initial comment was you could not see thepopup?) 2. in jsClick, you can remove the second parameter, since it is not being used at all. 3. When you are calling jsClick the third parameter does not render in ie or google, so not sure what you are passing in. Should be something like 'OK', 'Cancel'. etc Once you fix that, it should handle your popup On Apr 15, 9:33 am, William s...@grandstream.com wrote: Here is the method i handle thepopupmenu,maybe you can give some advise. def jsClick( ie,a, button, user_input=nil) waitTime=30 hwnd = ie.enabled_popup(waitTime) puts hwnd if (hwnd) w = WinClicker.new if ( user_input ) w.setTextValueForFileNameField(hwnd, #{user_input}) end sleep 3 w.clickWindowsButton_hwnd(hwnd, #{button}) w=nil end end def reboot(ie,unit_url,type) ie.maximize() ie.goto unit_url ie.text_field(:name,user).set admin ie.text_field(:name,pass).set admin ie.button(:id,login).click case type when 2 then begin ie.link(:url,unit_url+/cgi-bin/config).click end when 5 then begin ie.link(:url,unit_url+/config_tn.htm).click end end sleep 3 ie.button(:id,reboot).click_no_wait puts clicked #ie.button(:id,reboot).click jsClick(ie,@ie, 确定) puts The system(+unit_url+) is going to reboot... end On Apr 15, 9:30 pm, William s...@grandstream.com wrote: yes,if I use click it wouldpopup,but if i use this method i that it can not handle the javascriptpopupframe in my test. On Apr 15, 9:01 pm, bwaybandit lenridge...@gmail.com wrote: Does thepopupappear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but thepopupframe can not come out.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- 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:
[wtr-general] Re: click_no_wait can not make the popup come out
nothing to be embarassed about. just need to get it working :-) ok so in IE, when i use click_no_wait, check out the top of your browser. your popup is being blocked and you have to allow it access. i use IE6, and i have to click on a bar that appears at the top and select Allow Blocked Content. I am sure there is a IE security setting to get rid of this and I have not dug into this since I do not have an application where I need to mess with this. If that does not work, i will get on google talk with you and we can figure it out. On Apr 16, 11:40 pm, William s...@grandstream.com wrote: Also need to use click_no_wait method? I have told you that this method would not make the popup menu out,i don't know why.(there is a yelloa shadow on the button which show it attemp to do the click behavior),so anyother good advise? If you have a google talk ID,please join me ,I'm very boring for this and get embarrassment.Thanks!(my ID:s...@grandstream.com) On Apr 16, 10:56 pm, bwaybandit lenridge...@gmail.com wrote: This below will handle yoru javascript/vbscript popups. If they are native window popups then you have to resort to autoit require 'watir/ie' require 'watir/contrib/enabled_popup' # Main method to click a modal dialog button. def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end ie=Watir::Browser.new ie.goto C:\\test.html ie.button(:name, 'cmdClickMe').click_no_wait click_modal_button(ie) On Apr 16, 6:37 am, William s...@grandstream.com wrote: I still can not make it.If you have some good way to handle javascript popupmenu,please show me,thanks very much! On Apr 15, 9:54 pm, bwaybandit lenridge...@gmail.com wrote: a little confusion here. 1. when you use click_no_wait, do you see apopupand if you do, your code is not handing it, is that right? (reason i ask is because your initial comment was you could not see thepopup?) 2. in jsClick, you can remove the second parameter, since it is not being used at all. 3. When you are calling jsClick the third parameter does not render in ie or google, so not sure what you are passing in. Should be something like 'OK', 'Cancel'. etc Once you fix that, it should handle your popup On Apr 15, 9:33 am, William s...@grandstream.com wrote: Here is the method i handle thepopupmenu,maybe you can give some advise. def jsClick( ie,a, button, user_input=nil) waitTime=30 hwnd = ie.enabled_popup(waitTime) puts hwnd if (hwnd) w = WinClicker.new if ( user_input ) w.setTextValueForFileNameField(hwnd, #{user_input}) end sleep 3 w.clickWindowsButton_hwnd(hwnd, #{button}) w=nil end end def reboot(ie,unit_url,type) ie.maximize() ie.goto unit_url ie.text_field(:name,user).set admin ie.text_field(:name,pass).set admin ie.button(:id,login).click case type when 2 then begin ie.link(:url,unit_url+/cgi-bin/config).click end when 5 then begin ie.link(:url,unit_url+/config_tn.htm).click end end sleep 3 ie.button(:id,reboot).click_no_wait puts clicked #ie.button(:id,reboot).click jsClick(ie,@ie, 确定) puts The system(+unit_url+) is going to reboot... end On Apr 15, 9:30 pm, William s...@grandstream.com wrote: yes,if I use click it wouldpopup,but if i use this method i that it can not handle the javascriptpopupframe in my test. On Apr 15, 9:01 pm, bwaybandit lenridge...@gmail.com wrote: Does thepopupappear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but thepopupframe can not come out.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- 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: click_no_wait can not make the popup come out
I still can not make it.If you have some good way to handle javascript popup menu,please show me,thanks very much! On Apr 15, 9:54 pm, bwaybandit lenridge...@gmail.com wrote: a little confusion here. 1. when you use click_no_wait, do you see a popup and if you do, your code is not handing it, is that right? (reason i ask is because your initial comment was you could not see the popup?) 2. in jsClick, you can remove the second parameter, since it is not being used at all. 3. When you are calling jsClick the third parameter does not render in ie or google, so not sure what you are passing in. Should be something like 'OK', 'Cancel'. etc Once you fix that, it should handle your popup On Apr 15, 9:33 am, William s...@grandstream.com wrote: Here is the method i handle the popup menu,maybe you can give some advise. def jsClick( ie,a, button, user_input=nil) waitTime=30 hwnd = ie.enabled_popup(waitTime) puts hwnd if (hwnd) w = WinClicker.new if ( user_input ) w.setTextValueForFileNameField(hwnd, #{user_input}) end sleep 3 w.clickWindowsButton_hwnd(hwnd, #{button}) w=nil end end def reboot(ie,unit_url,type) ie.maximize() ie.goto unit_url ie.text_field(:name,user).set admin ie.text_field(:name,pass).set admin ie.button(:id,login).click case type when 2 then begin ie.link(:url,unit_url+/cgi-bin/config).click end when 5 then begin ie.link(:url,unit_url+/config_tn.htm).click end end sleep 3 ie.button(:id,reboot).click_no_wait puts clicked #ie.button(:id,reboot).click jsClick(ie,@ie, 确定) puts The system(+unit_url+) is going to reboot... end On Apr 15, 9:30 pm, William s...@grandstream.com wrote: yes,if I use click it would popup,but if i use this method i that it can not handle the javascript popup frame in my test. On Apr 15, 9:01 pm, bwaybandit lenridge...@gmail.com wrote: Does the popup appear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but the popup frame can not come out.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- 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: click_no_wait can not make the popup come out
This below will handle yoru javascript/vbscript popups. If they are native window popups then you have to resort to autoit require 'watir/ie' require 'watir/contrib/enabled_popup' # Main method to click a modal dialog button. def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end ie=Watir::Browser.new ie.goto C:\\test.html ie.button(:name, 'cmdClickMe').click_no_wait click_modal_button(ie) On Apr 16, 6:37 am, William s...@grandstream.com wrote: I still can not make it.If you have some good way to handle javascript popup menu,please show me,thanks very much! On Apr 15, 9:54 pm, bwaybandit lenridge...@gmail.com wrote: a little confusion here. 1. when you use click_no_wait, do you see a popup and if you do, your code is not handing it, is that right? (reason i ask is because your initial comment was you could not see the popup?) 2. in jsClick, you can remove the second parameter, since it is not being used at all. 3. When you are calling jsClick the third parameter does not render in ie or google, so not sure what you are passing in. Should be something like 'OK', 'Cancel'. etc Once you fix that, it should handle your popup On Apr 15, 9:33 am, William s...@grandstream.com wrote: Here is the method i handle the popup menu,maybe you can give some advise. def jsClick( ie,a, button, user_input=nil) waitTime=30 hwnd = ie.enabled_popup(waitTime) puts hwnd if (hwnd) w = WinClicker.new if ( user_input ) w.setTextValueForFileNameField(hwnd, #{user_input}) end sleep 3 w.clickWindowsButton_hwnd(hwnd, #{button}) w=nil end end def reboot(ie,unit_url,type) ie.maximize() ie.goto unit_url ie.text_field(:name,user).set admin ie.text_field(:name,pass).set admin ie.button(:id,login).click case type when 2 then begin ie.link(:url,unit_url+/cgi-bin/config).click end when 5 then begin ie.link(:url,unit_url+/config_tn.htm).click end end sleep 3 ie.button(:id,reboot).click_no_wait puts clicked #ie.button(:id,reboot).click jsClick(ie,@ie, 确定) puts The system(+unit_url+) is going to reboot... end On Apr 15, 9:30 pm, William s...@grandstream.com wrote: yes,if I use click it would popup,but if i use this method i that it can not handle the javascript popup frame in my test. On Apr 15, 9:01 pm, bwaybandit lenridge...@gmail.com wrote: Does the popup appear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but the popup frame can not come out.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- 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: click_no_wait can not make the popup come out
Does the popup appear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but the popup frame can not come out. --~--~-~--~~~---~--~~ 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: click_no_wait can not make the popup come out
yes,if I use click it would popup,but if i use this method i that it can not handle the javascript popup frame in my test. On Apr 15, 9:01 pm, bwaybandit lenridge...@gmail.com wrote: Does the popup appear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but the popup frame can not come out.- 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: click_no_wait can not make the popup come out
Here is the method i handle the popup menu,maybe you can give some advise. def jsClick( ie,a, button, user_input=nil) waitTime=30 hwnd = ie.enabled_popup(waitTime) puts hwnd if (hwnd) w = WinClicker.new if ( user_input ) w.setTextValueForFileNameField(hwnd, #{user_input}) end sleep 3 w.clickWindowsButton_hwnd(hwnd, #{button}) w=nil end end def reboot(ie,unit_url,type) ie.maximize() ie.goto unit_url ie.text_field(:name,user).set admin ie.text_field(:name,pass).set admin ie.button(:id,login).click case type when 2 then begin ie.link(:url,unit_url+/cgi-bin/config).click end when 5 then begin ie.link(:url,unit_url+/config_tn.htm).click end end sleep 3 ie.button(:id,reboot).click_no_wait puts clicked #ie.button(:id,reboot).click jsClick(ie,@ie, 确定) puts The system(+unit_url+) is going to reboot... end On Apr 15, 9:30 pm, William s...@grandstream.com wrote: yes,if I use click it would popup,but if i use this method i that it can not handle the javascript popup frame in my test. On Apr 15, 9:01 pm, bwaybandit lenridge...@gmail.com wrote: Does the popup appear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but the popup frame can not come out.- Hide quoted text - - Show quoted text -- 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 -~--~~~~--~~--~--~---