[wtr-general] Re: How to move the cursor to starting point in a masked text_field.
Can any one help me on this? Thanks Satish. On May 13, 4:17 pm, satish spanchumar...@gmail.com wrote: Here is my HTML for that Active Element: [INPUT], Index: [536] INPUT class=dxeEditArea onkeypress=aspxEKeyPress ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox', event) id=ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMas kTextBox_I onkeydown=aspxEKeyDown ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox', event) onblur=aspxELostFocus ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_t xtMaskTextBox') style=BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 1px 1px; WIDTH: 100%; PADDING-TOP: 0px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: 0px onfocus=aspxEGotFocus ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox') onchange=aspxEValueChanged ('ctl00_contentChildWindow_secUserDetails_subsec UserInfo_txtPhoneNumber_txtMaskTextBox') value=(___) ___- name=ctl00$contentChildWindow$secUserDetails$subsecUserInfo $txtPhoneNumber$txtMaskTextBox === Thanks Satish On May 13, 4:12 pm, Vicky Goyal vikasrattango...@gmail.com wrote: wel, you need to check the javascript code for that. There might be some validation for putting a certain type of text. Chk out that functionality paste your code here... dont attach screen shot.. may be html code On May 14, 1:08 am, satish spanchumar...@gmail.com wrote: Hi Vikas, it does not type any thing since cursor is all the way to the end. I can see it is trying to type at the end one letter at a time. But we want to start typing from the begining.. any thoughts on that.? Thanks Satish. On May 13, 3:52 pm, Vicky Goyal vikasrattango...@gmail.com wrote: as you say if you have to set number as 123456789 it s typing as 1 2 3 4 5 6 7 8 9 i.e 987654321 Well, i m not sure how to deal tht with watir code. but logically for your application, why dont you set value as 987654321 so that it can save the way u want :) hope this helps 9 8 7 6 6 4 3 2 1 i.e 123456789 this is the value you want. Go ahead with this approach, meanwhile community shall seek for more answers.. which directly hits the issue. regds Vikas goyal Infosys On May 14, 12:39 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko- 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: How to move the cursor to starting point in a masked text_field.
can some one help me on this? Satish On May 14, 8:21 am, satish spanchumar...@gmail.com wrote: Can any one help me on this? Thanks Satish. On May 13, 4:17 pm, satish spanchumar...@gmail.com wrote: Here is my HTML for that Active Element: [INPUT], Index: [536] INPUT class=dxeEditArea onkeypress=aspxEKeyPress ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox', event) id=ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMas kTextBox_I onkeydown=aspxEKeyDown ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox', event) onblur=aspxELostFocus ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_t xtMaskTextBox') style=BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 1px 1px; WIDTH: 100%; PADDING-TOP: 0px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: 0px onfocus=aspxEGotFocus ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox') onchange=aspxEValueChanged ('ctl00_contentChildWindow_secUserDetails_subsec UserInfo_txtPhoneNumber_txtMaskTextBox') value=(___) ___- name=ctl00$contentChildWindow$secUserDetails$subsecUserInfo $txtPhoneNumber$txtMaskTextBox === Thanks Satish On May 13, 4:12 pm, Vicky Goyal vikasrattango...@gmail.com wrote: wel, you need to check the javascript code for that. There might be some validation for putting a certain type of text. Chk out that functionality paste your code here... dont attach screen shot.. may be html code On May 14, 1:08 am, satish spanchumar...@gmail.com wrote: Hi Vikas, it does not type any thing since cursor is all the way to the end. I can see it is trying to type at the end one letter at a time. But we want to start typing from the begining.. any thoughts on that.? Thanks Satish. On May 13, 3:52 pm, Vicky Goyal vikasrattango...@gmail.com wrote: as you say if you have to set number as 123456789 it s typing as 1 2 3 4 5 6 7 8 9 i.e 987654321 Well, i m not sure how to deal tht with watir code. but logically for your application, why dont you set value as 987654321 so that it can save the way u want :) hope this helps 9 8 7 6 6 4 3 2 1 i.e 123456789 this is the value you want. Go ahead with this approach, meanwhile community shall seek for more answers.. which directly hits the issue. regds Vikas goyal Infosys On May 14, 12:39 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko- 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: How to move the cursor to starting point in a masked text_field.
2009/5/14 satish spanchumar...@gmail.com can some one help me on this? Maybe I could if you provided more information: 1) screen shot 2) html of the page (save it to your machine, open in web browser and see if you can reproduce the problem with saved page) Željko --~--~-~--~~~---~--~~ 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: How to move the cursor to starting point in a masked text_field.
Dude, Please use this before setting a value in your text field and let me know if any issue. ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).clear ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).set (12345678901234567890) Regards Siva Paneendra Krapa Virtusa --~--~-~--~~~---~--~~ 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: How to move the cursor to starting point in a masked text_field.
No, this does not work either. Only thing seems to work is with .value and put some wait command like (sleep 3). ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).value = 12345678901234567890 Mask is not working properly with .set Thanks Satish. On May 14, 12:51 pm, sHiVa krapa.ph...@gmail.com wrote: Dude, Please use this before setting a value in your text field and let me know if any issue. ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).clear ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).set (12345678901234567890) Regards Siva Paneendra Krapa Virtusa --~--~-~--~~~---~--~~ 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: How to move the cursor to starting point in a masked text_field.
Thank you very much to you all for kind reply. Satish. On May 14, 1:38 pm, satish spanchumar...@gmail.com wrote: No, this does not work either. Only thing seems to work is with .value and put some wait command like (sleep 3). ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).value = 12345678901234567890 Mask is not working properly with .set Thanks Satish. On May 14, 12:51 pm, sHiVa krapa.ph...@gmail.com wrote: Dude, Please use this before setting a value in your text field and let me know if any issue. ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).clear ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).set (12345678901234567890) Regards Siva Paneendra Krapa Virtusa- 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: How to move the cursor to starting point in a masked text_field.
On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko --~--~-~--~~~---~--~~ 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: How to move the cursor to starting point in a masked text_field.
Sure I can, but I am not sure how to upload the picture here. Is there a way to do it.? Our site can not be accessed from out side. sorry.. Thanks Satish. On May 13, 3:39 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko --~--~-~--~~~---~--~~ 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: How to move the cursor to starting point in a masked text_field.
as you say if you have to set number as 123456789 it s typing as 1 2 3 4 5 6 7 8 9 i.e 987654321 Well, i m not sure how to deal tht with watir code. but logically for your application, why dont you set value as 987654321 so that it can save the way u want :) hope this helps 9 8 7 6 6 4 3 2 1 i.e 123456789 this is the value you want. Go ahead with this approach, meanwhile community shall seek for more answers.. which directly hits the issue. regds Vikas goyal Infosys On May 14, 12:39 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko --~--~-~--~~~---~--~~ 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: How to move the cursor to starting point in a masked text_field.
Hi Vikas, it does not type any thing since cursor is all the way to the end. I can see it is trying to type at the end one letter at a time. But we want to start typing from the begining.. any thoughts on that.? Thanks Satish. On May 13, 3:52 pm, Vicky Goyal vikasrattango...@gmail.com wrote: as you say if you have to set number as 123456789 it s typing as 1 2 3 4 5 6 7 8 9 i.e 987654321 Well, i m not sure how to deal tht with watir code. but logically for your application, why dont you set value as 987654321 so that it can save the way u want :) hope this helps 9 8 7 6 6 4 3 2 1 i.e 123456789 this is the value you want. Go ahead with this approach, meanwhile community shall seek for more answers.. which directly hits the issue. regds Vikas goyal Infosys On May 14, 12:39 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko- 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: How to move the cursor to starting point in a masked text_field.
wel, you need to check the javascript code for that. There might be some validation for putting a certain type of text. Chk out that functionality paste your code here... dont attach screen shot.. may be html code On May 14, 1:08 am, satish spanchumar...@gmail.com wrote: Hi Vikas, it does not type any thing since cursor is all the way to the end. I can see it is trying to type at the end one letter at a time. But we want to start typing from the begining.. any thoughts on that.? Thanks Satish. On May 13, 3:52 pm, Vicky Goyal vikasrattango...@gmail.com wrote: as you say if you have to set number as 123456789 it s typing as 1 2 3 4 5 6 7 8 9 i.e 987654321 Well, i m not sure how to deal tht with watir code. but logically for your application, why dont you set value as 987654321 so that it can save the way u want :) hope this helps 9 8 7 6 6 4 3 2 1 i.e 123456789 this is the value you want. Go ahead with this approach, meanwhile community shall seek for more answers.. which directly hits the issue. regds Vikas goyal Infosys On May 14, 12:39 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko- 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: How to move the cursor to starting point in a masked text_field.
Here is my HTML for that Active Element: [INPUT], Index: [536] INPUT class=dxeEditArea onkeypress=aspxEKeyPress ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox', event) id=ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMas kTextBox_I onkeydown=aspxEKeyDown ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox', event) onblur=aspxELostFocus ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_t xtMaskTextBox') style=BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 1px 1px; WIDTH: 100%; PADDING-TOP: 0px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: 0px onfocus=aspxEGotFocus ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox') onchange=aspxEValueChanged ('ctl00_contentChildWindow_secUserDetails_subsec UserInfo_txtPhoneNumber_txtMaskTextBox') value=(___) ___- name=ctl00$contentChildWindow$secUserDetails$subsecUserInfo $txtPhoneNumber$txtMaskTextBox === Thanks Satish On May 13, 4:12 pm, Vicky Goyal vikasrattango...@gmail.com wrote: wel, you need to check the javascript code for that. There might be some validation for putting a certain type of text. Chk out that functionality paste your code here... dont attach screen shot.. may be html code On May 14, 1:08 am, satish spanchumar...@gmail.com wrote: Hi Vikas, it does not type any thing since cursor is all the way to the end. I can see it is trying to type at the end one letter at a time. But we want to start typing from the begining.. any thoughts on that.? Thanks Satish. On May 13, 3:52 pm, Vicky Goyal vikasrattango...@gmail.com wrote: as you say if you have to set number as 123456789 it s typing as 1 2 3 4 5 6 7 8 9 i.e 987654321 Well, i m not sure how to deal tht with watir code. but logically for your application, why dont you set value as 987654321 so that it can save the way u want :) hope this helps 9 8 7 6 6 4 3 2 1 i.e 123456789 this is the value you want. Go ahead with this approach, meanwhile community shall seek for more answers.. which directly hits the issue. regds Vikas goyal Infosys On May 14, 12:39 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko- 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 -~--~~~~--~~--~--~---