Alternate to TextBoxObject.Value

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
dal
Posts: 72
Joined: Thu Jun 24, 2010 8:59 am

Alternate to TextBoxObject.Value

Post by dal » Wed Sep 29, 2010 1:32 pm

Hi Team,

We are using

TextBoxObject.Value = "Sample Text" method to enter the values into a TextBox.

Usually the Buttons/CheckBoxes enables after entering the TextBox data are not getting enabled.

Any other way of entering the data to Text Boxes, we tried with Keyboard.press also still the buttons are not been enabled. Then tool is trying to click on the disabled button, which result in failure of the test.

Regards,
Dal...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Alternate to TextBoxObject.Value

Post by Support Team » Wed Sep 29, 2010 2:45 pm

Hi,

I think this depends on the event-handler of your control. Have you tried to click into the control with the mouse before you are entering the text? Maybe this will trigger the event of you control to enable the buttons.

Regards,
Peter
Ranorex Team
.
Image

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: Alternate to TextBoxObject.Value

Post by artur_gadomski » Wed Sep 29, 2010 3:17 pm

Try to move the focus away from the TextBox after you Keyboard.Press text into it. Easy way is to Press 'Tab' button.

dal
Posts: 72
Joined: Thu Jun 24, 2010 8:59 am

Re: Alternate to TextBoxObject.Value

Post by dal » Thu Sep 30, 2010 2:13 pm

Thanks for the suggestions...It workz...

Have used the following code...:

TextBoxObject.Click
Keyboard.Press("Sample Text")
Keyboard.Press({TAB})

which enables the Buttons / Checkboxes underneeth the TextBox.

Regards,
Dal...

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Alternate to TextBoxObject.Value

Post by atom » Fri Oct 15, 2010 12:59 pm

Why does {TAB} work...
In the event handler of the control, there is an event like FocusLost - its here that the code lives to enable the check boxes!