Forum Discussion
So, you click in the text box using the "Click" method on the text box component, correct?
What do you do next? Because, in order for the "OnExit" event to fire (which is what you are describing) you need to "leave" the component. So, your next step in your test case should be either a "Keys" method to tab to the next field or a "Click" method to click on a different component.
It would be helpful to see the code/keyword test that you're executing....
- nimishbhuta7 years agoFrequent Contributor
Hello Robert,
It is just a textbox which I am entering the text, then if you do a manual step it should be tab or click outside that component,so that the other text are populated.
I did enter the text through testcomplete and then clicked on another text book and also tried with the Keys object for example below are the code tried
This is text box Entering the text
Aliases.browser.HomePage.Frame.DisplayForm.ItemNumberTextBox.SetText "262626"
code tried :- Clicking on another text box
Aliases.browser.HomePage.Frame.DisplayForm.UnformattedTextBox.Click
another thing tried
Aliases.browser.HomePage.Frame.DisplayForm.ItemNumberTextBox..Keys("[TAB]")
Both the option tried but it did not populate other text on the screen.
I dont know how to use OnExit event, if you can show me example then I can try and also suggest what other things I try in order to populate the other text.
Regards,
Nimish
- NisHera7 years agoValued Contributor
did you try Aliases.browser.HomePage.Frame.DisplayForm.ItemNumberTextBox.Keys"262626"
Insted of SetText? Some times I had experience of SetText not responding.
- nimishbhuta7 years agoFrequent Contributor
Thanks a lot it worked. Excellent
Related Content
- 6 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago