Forum Discussion
- Marsha_RModerator
We need some more details in order to be able to help.
What version of TestComplete and Chrome are you using?
What exactly happens when you play back your recorded test? Screenshots of your code and test log would be useful for us.
- lisa_warden62New Contributor
What version of TestComplete and Chrome are you using?
TestComplete 14.90.432.7
Chrome 93.0.4577.63
What exactly happens when you play back your recorded test? Screenshots of your code and test log would be useful for us.
Nothing happens when I play the code… it does all the steps until it get to the Keys line, then it ignores it. On this particular window, without that field, the validation prevents me from continuing.
This is the code that I’m running…
The test log contains nothing useful. It didn’t error out, but here is a screen shot.
- Marsha_RModerator
Make sure you've been through all this setup
Try adding a Click into the text box or SetFocus to it before you use Keys or SetText.
https://support.smartbear.com/testcomplete/docs/reference/user-forms/methods/setfocus.html
If that doesn't help, I would use Debug with a breakpoint right before the Keys line and step through it. If that works, then it's a timing issue and you can use Wait to make sure the object is there before you enter the text.
Related Content
- 10 years ago
- 12 months ago
Recent Discussions
- 3 days ago