Forum Discussion
1 Reply
- rraghvani
Champion Level 3
It's documented here https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-sys-desktop-pda/keys-method-sys-desktop-object.html However, doing TestObj.Keys("*") could have been a bug itself!
- scot1967Regular Contributor
That's good to know. That is typically used to send specifically the number pad * to an object. Yeah, it doesn't make sense to refactor tests to work around something that should work the way it is intended.
- scot1967Regular Contributor
Out of curiosity, what would happen if you added the * to a variable and concatenate this into the string or used a string literal format instead? Now I am just fishing for what might work to guess at what could be causing the problem. 🎣🐟🎣
https://www.w3schools.com/js/js_string_templates.aspsomeObj.Keys(`* is not working.`);
someObj.Keys(`'${"*"}' is not working.`);
- scot1967Regular Contributor
I found it. I don't think there is anything there to help you however. 🫤 The last post seems to be left at a problem with 15.72.
Problem entering character * | SmartBear Community- Hassan_BallanRegular Contributor
Yes try using the [NumAsterisk] instead of *, it may get you going.
- hinaContributor
Hi Hassan,
Thank you for your reply. [NumAsterisk] worked!! But I have opened a support ticket to get this fixed. I have couple of test cases using *, it's going to be an effort to update all of them.
- scot1967Regular Contributor
I saw a similar post about this. Let me see if I can find it.