Keys method doesn't work in Chrome.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Keys method doesn't work in Chrome.
I have tried SetText with no response from the page. I have tried to record my actions which works to record, but it won't work on playing it back.
- Labels:
-
Chrome
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just uploaded the file that you needed. Awaiting your reply.
