Forum Discussion
Just wondering, can't you use SetText() instead of Keys(). SetText works seamlessly.
tvklovesu wrote:
Just wondering, can't you use SetText() instead of Keys(). SetText works seamlessly.
lol I have found it to be the exact opposite - SetText doesn't work where I need it and Keys always does
- jaredjamieson2 years agoOccasional ContributorThat is what I have noticed. I cannot use SetText() on the same objects I can use Keys().
- Marsha_R2 years agoModerator
Keys is meant to mimic a person typing so I would expect it to work anywhere. SetText is changing a property internally and the code under test may not react well with that, for instance the UI would not know that there was a new value in a field so even though you set the value you could not see it.
What version of TC are you using? Did this work for you before your last update or is this something new you are trying?
- jaredjamieson2 years agoOccasional Contributor
No worries using the SetText() method since I don't even have the option to use it.
My TestComplete Version is version 15.44.11.7 x64. The most recent release of TestComplete is 15.47. Within these newer releases, the only thing for the Mobile module that looks to affect my issue is that there were improvements in the performance of the Keys module. Do you think this could be a resolution?
Here are some other versions that may be a related to my issue:
License for Perpetual (Desktop, Web, Mobile).
Microsoft Windows 10 Enterprise, 64-bit (10.0 Build 19044)
Related Content
- 13 years ago
- 3 years ago
- 4 years ago
- 7 years ago
Recent Discussions
- 2 hours ago
- 10 hours ago