Ask a Question

Keys method doesn't work in Chrome.

lisa_warden62
New Contributor

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.

4 REPLIES 4
Marsha_R
Champion Level 2

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.

 

 

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…

lisa_warden62_0-1632132581364.png

 

The test log contains nothing useful.  It didn’t error out, but here is a screen shot.

lisa_warden62_1-1632132581372.png

 

Make sure you've been through all this setup

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/preparing-browsers/chrome.ht...

 

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.

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-process-or-window-a...

Just uploaded the file that you needed.  Awaiting your reply.

cancel
Showing results for 
Search instead for 
Did you mean: