Masked textboxes

69 views
Skip to first unread message

Jason C

unread,
Mar 7, 2013, 5:24:14 PM3/7/13
to twebst-autom...@googlegroups.com
Been using Twebst for some time and found an issue that doesn't appear to have a resolution.

I'm using Twebst to populate a several forms which it does quite nicely.  The problem is when it gets to a masked textbox that it will not insert its captured text/numbers.

Is this a known issue or is there something I may be missing?

codecentrix

unread,
Mar 8, 2013, 1:38:20 AM3/8/13
to twebst-autom...@googlegroups.com
Hi,

What do you exactly mean by a masked text box?
Do you have a web site where I can look ?

Adrian.

Jason C

unread,
Mar 15, 2013, 12:12:26 PM3/15/13
to twebst-autom...@googlegroups.com
Unfortunately I can't share the website, but I can tell you we use Telerik controls including their masked textbox.

codecentrix

unread,
Mar 16, 2013, 3:30:27 AM3/16/13
to twebst-autom...@googlegroups.com
Can you at least post a snapshot picture to get an idea about what masked textbox is?
I will look into telerik too.

Adrian.

Jason C

unread,
Mar 18, 2013, 9:53:39 AM3/18/13
to twebst-autom...@googlegroups.com
http://i266.photobucket.com/albums/ii270/phatal808/TelerikMasked_zpsddf7291c.jpg

This shows a before and after of a masked textbox.  Phone numbers are disfunctional as well.

Thanks for your assistance.  I really want this to work.

codecentrix

unread,
Mar 18, 2013, 2:36:53 PM3/18/13
to twebst-autom...@googlegroups.com
Hi,

I quickly check telerik website and they have a demo area where I could test the masked text boxes.
For now the only way to automate them is using hardware events. See core.useHardwareInputEvents at http://www.codecentrix.com/help/HTML/LnkuseHardwareInputEvents.htm

Here is a demo JS script:

var core    = new ActiveXObject('Twebst.Core');
var browser = core.StartBrowser('http://demos.telerik.com/aspnet-ajax/input/examples/radmaskedtextbox/firstlook/defaultcs.aspx');

browser.FindElement('a', 'id=ctl00_ContentPlaceHolder1_RadComboBox1_Arrow').Click();
WScript.Sleep(1000);
browser.FindElement('li', 'text=SSN').Click();

WScript.Sleep(1000);

core.useHardwareInputEvents = true;
browser.FindElement('input text', 'id=ctl00_ContentPlaceHolder1_RadMaskedTextBox1').InputText('123-45-6789');

Best regards,
Adrian.

Jason C

unread,
Mar 20, 2013, 7:44:56 PM3/20/13
to twebst-autom...@googlegroups.com
Does this work with Open Twebst(vb.net) as well?

codecentrix

unread,
Mar 21, 2013, 8:53:38 AM3/21/13
to twebst-autom...@googlegroups.com
Yes, it should work with Open Twebst too.

Adrian.

Jason C

unread,
Mar 23, 2013, 9:44:59 AM3/23/13
to twebst-autom...@googlegroups.com
After reading the documentation it states that hardware control does not work with open twebst.

Is there a trial that I can try.  If I can verify Twebst works with the masked textboxes then I can request a purchase.

Jason C

unread,
Mar 23, 2013, 12:50:04 PM3/23/13
to twebst-autom...@googlegroups.com
I meant the regex function not the hardware.

codecentrix

unread,
Mar 23, 2013, 2:55:35 PM3/23/13
to twebst-autom...@googlegroups.com
Hi,

You can download the setup at: http://www.codecentrix.com/download.html

and request for a 30-day trial key here: http://www.codecentrix.com/trial_key_pro.html

Adrian.

Don Leverton

unread,
Oct 22, 2018, 12:45:29 AM10/22/18
to Twebst
I've got a similar situation with a hidden textbox that does not appear until you have made a criteria selection from a dropdown.
I'm using Microsoft Access with VBA code:
    Call browser.FindElement("div", "uiname=Advanced Search, index=1").Click
    Call browser.FindElement("div", "class=searchIcon, index=1").Click
   ' Call browser.FindElement("button", "uiname=Yes").Click
    Wait 2, True 'This is a function that pauses program execution for 2 seconds

    Call browser.FindElement("input text", "id=fbSearchProperties_25_input").InputText("AP Invoice Number")
    Call browser.FindElement("input text", "id=fbSearchConditionType_26_input").InputText("is")
    '***** works fine to here **************
    core.useHardwareInputEvents = True 'Added this as a result of reading this thread .. not working

    Call browser.FindElement("input text", "uiname=Specify value").InputText("108100")
    Call browser.FindElement("input submit", "id=searchButton").Click

That "uiname=Specify Value" is the seemingly hidden texttbox that does not appear until you have made a criteria selection from: id=fbSearchProperties_25_input").InputText("AP Invoice Number")

When I use Internet Explorer's element inspector:
<input tabindex="5" class="searchTypedValue typedValueTextBox typedValueInputTextBox" style="width: 426.2px;" type="text" placeholder="Specify value" autocomplete="off" "="">

So how can I set a value (eventually from a variable, but for now a fixed value of "108100")

Reply all
Reply to author
Forward
0 new messages