Forum Discussion
As Marsha_R said. You can record the code as reference.
Some date object has the 'wDate' property. You will use it like Object.wDate = '02/20/2021' if it has.
Thank you. I don't have that property either.
I might need to resolve into clicking! Thanks to both of you.
- Marsha_R4 years agoModerator
Since you are using object properties to click the field, it will not matter if the field moves. That's only an issue if you are using coordinates instead of the properties.
Timing issues may indeed come up but those are common and can be addressed with some version of Wait. If that happens to you, start another post and we can help you fix that.
- Logiv4 years agoContributor
The other downside of using Keys seems to be that I cannot pass a variable. I wanted to insert today's date in the field but it is going to be a lot more work to make it work with keys - if even possible! As of now, it is failing.
- Marsha_R4 years agoModerator
Keys will take a string
If your variable is not a string, you can convert it inline as you are passing it to Keys. There are examples here:
Here are other ways to convert from type to type:
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqconvert/index.html
Related Content
- 6 years ago
- 7 years ago
- 12 years ago
- 6 years ago
Recent Discussions
- 5 hours ago
- 6 days ago
- 10 days ago