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
Community Hero

Re: Keys method doesn't work in Chrome.

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.

 

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
lisa_warden62
New Contributor

Re: Keys method doesn't work in Chrome.

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

 

Marsha_R
Community Hero

Re: Keys method doesn't work in Chrome.

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...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
lisa_warden62
New Contributor

Re: Keys method doesn't work in Chrome.

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

cancel
Showing results for 
Search instead for 
Did you mean: