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...
Alternate to TextBoxObject.Value
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Alternate to TextBoxObject.Value
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
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
- artur_gadomski
- Posts: 207
- Joined: Mon Jul 19, 2010 6:55 am
- Location: Copenhagen, Denmark
- Contact:
Re: Alternate to TextBoxObject.Value
Try to move the focus away from the TextBox after you Keyboard.Press text into it. Easy way is to Press 'Tab' button.
Re: Alternate to TextBoxObject.Value
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...
Have used the following code...:
TextBoxObject.Click
Keyboard.Press("Sample Text")
Keyboard.Press({TAB})
which enables the Buttons / Checkboxes underneeth the TextBox.
Regards,
Dal...
Re: Alternate to TextBoxObject.Value
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!
In the event handler of the control, there is an event like FocusLost - its here that the code lives to enable the check boxes!