Error while raising raise event method
While i raise event on textbox after entering text, i'm using "OnPaste" method to recognize the text .
But i'm getting error "Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME"
Tried different events under raise event , but everytime i'm getting same error as mentioned above.
Application which i'm using is built on angular.
In your script you have two parameters -
In your automation, you are passing the eventname into the wrong parameter. "paste", "select", "change", etc... are all going into parameter 1 (type)... so it is not executing correctly. They need to go into "parameter1" instead of "parameter0".
Did you try testing the script at the bottom of the document I attached? There probably needs to be text in the textbox before it activates...so set the text first. If in automation... use the text property and set to something arbitrary. If in F12 Developer Tools Console, set the value text property, like target.text="a"; or target.value="a"; then try the raiseEvents function with the noIdeaEvents and the keyEvents on that element.
Everything is easier to test outside of Studio... I really recommend first testing everything in the F12 Dev Tools... leave Studio out until you figure out what you need.
Keep up to date on this post and subscribe to comments