FireEvent : Values are not populated when I click on Text Box
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FireEvent : Values are not populated when I click on Text Box
Hello
I am facing a typicall issue that if I enter the value in the text box and manually perform tab or click outside the textbox then it populates the other values on the screen
But when I perform testcomplete normal click outside the text box,it does not work out.
I am not sure what needs to be done in this case.
Regards,
Nimish
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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....
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
did you try Aliases.browser.HomePage.Frame.DisplayForm.ItemNumberTextBox.Keys"262626"
Insted of SetText? Some times I had experience of SetText not responding.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot it worked. Excellent
