[wtr-general] Re: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
Do you use IE7? try to click anywhere in browser page. It will move focus from URL field to the browser page. and the run your autoit code --~--~-~--~~~---~--~~ 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
Here is HTML code.. == Active Element: [INPUT], Index: [536] === Thanks Satish On May 14, 12:21 pm, kiran wrote: > Can u give me the html code? > > On May 14, 9:02 pm, satish wrote: > > > > > I tried following. That did not help either. > > For some reason its starting typing from at the end of the Phone MASK. > > (___) ___- > > > ie.text_field(:id, > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > > ('onblur') > > ie.text_field(:id, > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > > ('onchange') > > sleep 3 > > ie.text_field(:id, > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > > ('onfocus') > > sleep 3 > > ie.text_field(:id, > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > > ('onkeydown') > > sleep 3 > > ie.text_field(:id, > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > > ('onkeypress') > > sleep 3 > > ie.text_field(:id, > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > > ('scrollLeft') > > sleep 3 > > > Thanks > > Satish. > > > On May 14, 11:50 am, kiran wrote: > > > > Hi sathish, > > > Try to use fire_event actions on the text_field. I think it would help > > > you. > > > It is something like this > > > ie.text_field("").fire_event("OnClick") > > > see the source code. > > > > Thanks, > > > kiran. > > > > On May 14, 7:50 pm, satish wrote: > > > > > Can some one help me on this? > > > > Satish. > > > > > On May 14, 8:20 am, satish wrote: > > > > > > Can some one help me on this? > > > > > > Thanks > > > > > Satish. > > > > > > On May 13, 4:26 pm, satish wrote: > > > > > > > text_field is on the browser it self. No popups involved here. > > > > > > > Thanks > > > > > > Satish. > > > > > > > On May 13, 4:21 pm, Anu Gangavaram wrote: > > > > > > > > where is the text field, on the browser or the windows popup? It > > > > > > > the > > > > > > > textfield is on the popup, you are using the browser object to > > > > > > > focus. You > > > > > > > should use AutoIt instead. > > > > > > > > On Wed, May 13, 2009 at 4:10 PM, satish > > > > > > > wrote: > > > > > > > > > I think I did focus on to text_field using following command. > > > > > > > > ie.text_field(:id, > > > > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM > > > > > > > > askTextBox_I").focus > > > > > > > > > I guess that should do right? > > > > > > > > > Thanks > > > > > > > > Satish. > > > > > > > > > On May 13, 4:06 pm, Anu Gangavaram wrote: > > > > > > > > > It is because the focus is currently set on the browser and > > > > > > > > > not on the > > > > > > > > > popup/window. You need to first set focus on the popup or > > > > > > > > > activate it: > > > > > > > > > autoit.WinActive(). > > > > > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish > > > > > > > > > wrote: > > > > > > > > > > > Can some one tell me why my code here does not work? > > > > > > > > > > It seems to be doing the Send action in the browser URL > > > > > > > > > > address area > > > > > > > > > > instead of in the text_field area. > > > > > > > > > > > Here is my code.. > > > > > > > > > > = > > > > > > > > > > require "watir" > > > > > > > > > > require "win32ole" > > > > > > > > > > ie.text_field(:id, > > > > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > > > > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > > > > > autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > > > Can you some please let me know whats wrong with this code. > > > > > > > > > > > Appreciate your help > > > > > > > > > > > Thank you, > > > > > > > > > > Satish.- 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 -- 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
[wtr-general] Re: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
Can u give me the html code? On May 14, 9:02 pm, satish wrote: > I tried following. That did not help either. > For some reason its starting typing from at the end of the Phone MASK. > (___) ___- > > ie.text_field(:id, > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > ('onblur') > ie.text_field(:id, > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > ('onchange') > sleep 3 > ie.text_field(:id, > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > ('onfocus') > sleep 3 > ie.text_field(:id, > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > ('onkeydown') > sleep 3 > ie.text_field(:id, > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > ('onkeypress') > sleep 3 > ie.text_field(:id, > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event > ('scrollLeft') > sleep 3 > > Thanks > Satish. > > On May 14, 11:50 am, kiran wrote: > > > Hi sathish, > > Try to use fire_event actions on the text_field. I think it would help > > you. > > It is something like this > > ie.text_field("").fire_event("OnClick") > > see the source code. > > > Thanks, > > kiran. > > > On May 14, 7:50 pm, satish wrote: > > > > Can some one help me on this? > > > Satish. > > > > On May 14, 8:20 am, satish wrote: > > > > > Can some one help me on this? > > > > > Thanks > > > > Satish. > > > > > On May 13, 4:26 pm, satish wrote: > > > > > > text_field is on the browser it self. No popups involved here. > > > > > > Thanks > > > > > Satish. > > > > > > On May 13, 4:21 pm, Anu Gangavaram wrote: > > > > > > > where is the text field, on the browser or the windows popup? It > > > > > > the > > > > > > textfield is on the popup, you are using the browser object to > > > > > > focus. You > > > > > > should use AutoIt instead. > > > > > > > On Wed, May 13, 2009 at 4:10 PM, satish > > > > > > wrote: > > > > > > > > I think I did focus on to text_field using following command. > > > > > > > ie.text_field(:id, > > > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM > > > > > > > askTextBox_I").focus > > > > > > > > I guess that should do right? > > > > > > > > Thanks > > > > > > > Satish. > > > > > > > > On May 13, 4:06 pm, Anu Gangavaram wrote: > > > > > > > > It is because the focus is currently set on the browser and not > > > > > > > > on the > > > > > > > > popup/window. You need to first set focus on the popup or > > > > > > > > activate it: > > > > > > > > autoit.WinActive(). > > > > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish > > > > > > > > wrote: > > > > > > > > > > Can some one tell me why my code here does not work? > > > > > > > > > It seems to be doing the Send action in the browser URL > > > > > > > > > address area > > > > > > > > > instead of in the text_field area. > > > > > > > > > > Here is my code.. > > > > > > > > > = > > > > > > > > > require "watir" > > > > > > > > > require "win32ole" > > > > > > > > > ie.text_field(:id, > > > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > > > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > > > > autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > > Can you some please let me know whats wrong with this code. > > > > > > > > > > Appreciate your help > > > > > > > > > > Thank you, > > > > > > > > > Satish.- 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: 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
I tried following. That did not help either. For some reason its starting typing from at the end of the Phone MASK. (___) ___- ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event ('onblur') ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event ('onchange') sleep 3 ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event ('onfocus') sleep 3 ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event ('onkeydown') sleep 3 ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event ('onkeypress') sleep 3 ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").fire_event ('scrollLeft') sleep 3 Thanks Satish. On May 14, 11:50 am, kiran wrote: > Hi sathish, > Try to use fire_event actions on the text_field. I think it would help > you. > It is something like this > ie.text_field("").fire_event("OnClick") > see the source code. > > Thanks, > kiran. > > On May 14, 7:50 pm, satish wrote: > > > > > Can some one help me on this? > > Satish. > > > On May 14, 8:20 am, satish wrote: > > > > Can some one help me on this? > > > > Thanks > > > Satish. > > > > On May 13, 4:26 pm, satish wrote: > > > > > text_field is on the browser it self. No popups involved here. > > > > > Thanks > > > > Satish. > > > > > On May 13, 4:21 pm, Anu Gangavaram wrote: > > > > > > where is the text field, on the browser or the windows popup? It the > > > > > textfield is on the popup, you are using the browser object to focus. > > > > > You > > > > > should use AutoIt instead. > > > > > > On Wed, May 13, 2009 at 4:10 PM, satish > > > > > wrote: > > > > > > > I think I did focus on to text_field using following command. > > > > > > ie.text_field(:id, > > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM > > > > > > askTextBox_I").focus > > > > > > > I guess that should do right? > > > > > > > Thanks > > > > > > Satish. > > > > > > > On May 13, 4:06 pm, Anu Gangavaram wrote: > > > > > > > It is because the focus is currently set on the browser and not > > > > > > > on the > > > > > > > popup/window. You need to first set focus on the popup or > > > > > > > activate it: > > > > > > > autoit.WinActive(). > > > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish > > > > > > > wrote: > > > > > > > > > Can some one tell me why my code here does not work? > > > > > > > > It seems to be doing the Send action in the browser URL address > > > > > > > > area > > > > > > > > instead of in the text_field area. > > > > > > > > > Here is my code.. > > > > > > > > = > > > > > > > > require "watir" > > > > > > > > require "win32ole" > > > > > > > > ie.text_field(:id, > > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > > > autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > autoit.Send("{LEFT}") > > > > > > > > > Can you some please let me know whats wrong with this code. > > > > > > > > > Appreciate your help > > > > > > > > > Thank you, > > > > > > > > Satish.- 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: 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
Hi sathish, Try to use fire_event actions on the text_field. I think it would help you. It is something like this ie.text_field("").fire_event("OnClick") see the source code. Thanks, kiran. On May 14, 7:50 pm, satish wrote: > Can some one help me on this? > Satish. > > On May 14, 8:20 am, satish wrote: > > > Can some one help me on this? > > > Thanks > > Satish. > > > On May 13, 4:26 pm, satish wrote: > > > > text_field is on the browser it self. No popups involved here. > > > > Thanks > > > Satish. > > > > On May 13, 4:21 pm, Anu Gangavaram wrote: > > > > > where is the text field, on the browser or the windows popup? It the > > > > textfield is on the popup, you are using the browser object to focus. > > > > You > > > > should use AutoIt instead. > > > > > On Wed, May 13, 2009 at 4:10 PM, satish wrote: > > > > > > I think I did focus on to text_field using following command. > > > > > ie.text_field(:id, > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM > > > > > askTextBox_I").focus > > > > > > I guess that should do right? > > > > > > Thanks > > > > > Satish. > > > > > > On May 13, 4:06 pm, Anu Gangavaram wrote: > > > > > > It is because the focus is currently set on the browser and not on > > > > > > the > > > > > > popup/window. You need to first set focus on the popup or activate > > > > > > it: > > > > > > autoit.WinActive(). > > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish > > > > > > wrote: > > > > > > > > Can some one tell me why my code here does not work? > > > > > > > It seems to be doing the Send action in the browser URL address > > > > > > > area > > > > > > > instead of in the text_field area. > > > > > > > > Here is my code.. > > > > > > > = > > > > > > > require "watir" > > > > > > > require "win32ole" > > > > > > > ie.text_field(:id, > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > > autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > > autoit.Send("{LEFT}") > > > > > > > autoit.Send("{LEFT}") > > > > > > > autoit.Send("{LEFT}") > > > > > > > autoit.Send("{LEFT}") > > > > > > > autoit.Send("{LEFT}") > > > > > > > > Can you some please let me know whats wrong with this code. > > > > > > > > Appreciate your help > > > > > > > > Thank you, > > > > > > > Satish.- 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
Can some one help me on this? Satish. On May 14, 8:20 am, satish wrote: > Can some one help me on this? > > Thanks > Satish. > > On May 13, 4:26 pm, satish wrote: > > > > > text_field is on the browser it self. No popups involved here. > > > Thanks > > Satish. > > > On May 13, 4:21 pm, Anu Gangavaram wrote: > > > > where is the text field, on the browser or the windows popup? It the > > > textfield is on the popup, you are using the browser object to focus. You > > > should use AutoIt instead. > > > > On Wed, May 13, 2009 at 4:10 PM, satish wrote: > > > > > I think I did focus on to text_field using following command. > > > > ie.text_field(:id, > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM > > > > askTextBox_I").focus > > > > > I guess that should do right? > > > > > Thanks > > > > Satish. > > > > > On May 13, 4:06 pm, Anu Gangavaram wrote: > > > > > It is because the focus is currently set on the browser and not on the > > > > > popup/window. You need to first set focus on the popup or activate > > > > > it: > > > > > autoit.WinActive(). > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish > > > > > wrote: > > > > > > > Can some one tell me why my code here does not work? > > > > > > It seems to be doing the Send action in the browser URL address area > > > > > > instead of in the text_field area. > > > > > > > Here is my code.. > > > > > > = > > > > > > require "watir" > > > > > > require "win32ole" > > > > > > ie.text_field(:id, > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > autoit = WIN32OLE.new('AutoItX3.Control') > > > > > > autoit.Send("{LEFT}") > > > > > > autoit.Send("{LEFT}") > > > > > > autoit.Send("{LEFT}") > > > > > > autoit.Send("{LEFT}") > > > > > > autoit.Send("{LEFT}") > > > > > > > Can you some please let me know whats wrong with this code. > > > > > > > Appreciate your help > > > > > > > Thank you, > > > > > > Satish.- 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
Can some one help me on this? Thanks Satish. On May 13, 4:26 pm, satish wrote: > text_field is on the browser it self. No popups involved here. > > Thanks > Satish. > > On May 13, 4:21 pm, Anu Gangavaram wrote: > > > > > where is the text field, on the browser or the windows popup? It the > > textfield is on the popup, you are using the browser object to focus. You > > should use AutoIt instead. > > > On Wed, May 13, 2009 at 4:10 PM, satish wrote: > > > > I think I did focus on to text_field using following command. > > > ie.text_field(:id, > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM > > > askTextBox_I").focus > > > > I guess that should do right? > > > > Thanks > > > Satish. > > > > On May 13, 4:06 pm, Anu Gangavaram wrote: > > > > It is because the focus is currently set on the browser and not on the > > > > popup/window. You need to first set focus on the popup or activate it: > > > > autoit.WinActive(). > > > > > On Wed, May 13, 2009 at 3:43 PM, satish wrote: > > > > > > Can some one tell me why my code here does not work? > > > > > It seems to be doing the Send action in the browser URL address area > > > > > instead of in the text_field area. > > > > > > Here is my code.. > > > > > = > > > > > require "watir" > > > > > require "win32ole" > > > > > ie.text_field(:id, > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > > > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > > > > autoit = WIN32OLE.new('AutoItX3.Control') > > > > > autoit.Send("{LEFT}") > > > > > autoit.Send("{LEFT}") > > > > > autoit.Send("{LEFT}") > > > > > autoit.Send("{LEFT}") > > > > > autoit.Send("{LEFT}") > > > > > > Can you some please let me know whats wrong with this code. > > > > > > Appreciate your help > > > > > > Thank you, > > > > > Satish.- 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
text_field is on the browser it self. No popups involved here. Thanks Satish. On May 13, 4:21 pm, Anu Gangavaram wrote: > where is the text field, on the browser or the windows popup? It the > textfield is on the popup, you are using the browser object to focus. You > should use AutoIt instead. > > > > On Wed, May 13, 2009 at 4:10 PM, satish wrote: > > > I think I did focus on to text_field using following command. > > ie.text_field(:id, > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM > > askTextBox_I").focus > > > I guess that should do right? > > > Thanks > > Satish. > > > On May 13, 4:06 pm, Anu Gangavaram wrote: > > > It is because the focus is currently set on the browser and not on the > > > popup/window. You need to first set focus on the popup or activate it: > > > autoit.WinActive(). > > > > On Wed, May 13, 2009 at 3:43 PM, satish wrote: > > > > > Can some one tell me why my code here does not work? > > > > It seems to be doing the Send action in the browser URL address area > > > > instead of in the text_field area. > > > > > Here is my code.. > > > > = > > > > require "watir" > > > > require "win32ole" > > > > ie.text_field(:id, > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > > > autoit = WIN32OLE.new('AutoItX3.Control') > > > > autoit.Send("{LEFT}") > > > > autoit.Send("{LEFT}") > > > > autoit.Send("{LEFT}") > > > > autoit.Send("{LEFT}") > > > > autoit.Send("{LEFT}") > > > > > Can you some please let me know whats wrong with this code. > > > > > Appreciate your help > > > > > Thank you, > > > > Satish.- 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
where is the text field, on the browser or the windows popup? It the textfield is on the popup, you are using the browser object to focus. You should use AutoIt instead. On Wed, May 13, 2009 at 4:10 PM, satish wrote: > > I think I did focus on to text_field using following command. > ie.text_field(:id, > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM > askTextBox_I").focus > > I guess that should do right? > > Thanks > Satish. > > On May 13, 4:06 pm, Anu Gangavaram wrote: > > It is because the focus is currently set on the browser and not on the > > popup/window. You need to first set focus on the popup or activate it: > > autoit.WinActive(). > > > > > > > > On Wed, May 13, 2009 at 3:43 PM, satish wrote: > > > > > Can some one tell me why my code here does not work? > > > It seems to be doing the Send action in the browser URL address area > > > instead of in the text_field area. > > > > > Here is my code.. > > > = > > > require "watir" > > > require "win32ole" > > > ie.text_field(:id, > > > > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > > autoit = WIN32OLE.new('AutoItX3.Control') > > > autoit.Send("{LEFT}") > > > autoit.Send("{LEFT}") > > > autoit.Send("{LEFT}") > > > autoit.Send("{LEFT}") > > > autoit.Send("{LEFT}") > > > > > Can you some please let me know whats wrong with this code. > > > > > Appreciate your help > > > > > Thank you, > > > Satish.- 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
I think I did focus on to text_field using following command. ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I").focus I guess that should do right? Thanks Satish. On May 13, 4:06 pm, Anu Gangavaram wrote: > It is because the focus is currently set on the browser and not on the > popup/window. You need to first set focus on the popup or activate it: > autoit.WinActive(). > > > > On Wed, May 13, 2009 at 3:43 PM, satish wrote: > > > Can some one tell me why my code here does not work? > > It seems to be doing the Send action in the browser URL address area > > instead of in the text_field area. > > > Here is my code.. > > = > > require "watir" > > require "win32ole" > > ie.text_field(:id, > > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > > puts autoit = WIN32OLE.new('AutoItX3.Control') > > autoit = WIN32OLE.new('AutoItX3.Control') > > autoit.Send("{LEFT}") > > autoit.Send("{LEFT}") > > autoit.Send("{LEFT}") > > autoit.Send("{LEFT}") > > autoit.Send("{LEFT}") > > > Can you some please let me know whats wrong with this code. > > > Appreciate your help > > > Thank you, > > Satish.- 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: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.
It is because the focus is currently set on the browser and not on the popup/window. You need to first set focus on the popup or activate it: autoit.WinActive(). On Wed, May 13, 2009 at 3:43 PM, satish wrote: > > > Can some one tell me why my code here does not work? > It seems to be doing the Send action in the browser URL address area > instead of in the text_field area. > > Here is my code.. > = > require "watir" > require "win32ole" > ie.text_field(:id, > > "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").focus > puts autoit = WIN32OLE.new('AutoItX3.Control') > autoit = WIN32OLE.new('AutoItX3.Control') > autoit.Send("{LEFT}") > autoit.Send("{LEFT}") > autoit.Send("{LEFT}") > autoit.Send("{LEFT}") > autoit.Send("{LEFT}") > > Can you some please let me know whats wrong with this code. > > Appreciate your help > > Thank you, > Satish. > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---