This problem is regarding recording enter key press for a WebEdit.I tried low levl recording but it is not working.
I tried the on key press event too.It also did not work.
Browser("OCS").Page("OCS").WebEdit("WebEdit").Fire Event "OnKeyPress"
How Can I do this ?
It Submits a form. The Webedit Object does not support type.
Alfredo R. Rivera
IT Principal SDLC Automation Subject Matter Expert
Certified Mercury Interactive Instructor
Certified Tester, Foundation Level (CTFL)
You could also do a click followed by a SendKeys from the Windows Script Host. I like submit better, just giving you more options.
Using submit is not working.Can anyone give some other pointers regarding this.
Try inserting Carriage Return(vbCr) like this:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
Browser("OCS".Page("OCS".WebEdit("WebEdit".Set "testline1" + vbCr + "testline2"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
For webedit firevent does not support Keypress event. Could you clearly let me know what u want to do. please give a detailed description of your problem
Post the line corresponding to the text box in html source code.
You can find by using object spy on the text box and then see the outertext/innertext that appears in the object's Run-time properties
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
Try this function
Public Sub EnterVal (Value)
Set WshShell = CreateObject("WScript.Shell")
Use Browser(..).Page(..).WebEdit(..).Click before using this function
I've been having similar problems for the app I test, in .net, and I had to get patches from Mercury. So far 3 patches I've had to get, and I am able to click on toolbars and the micReturn key is sent OK.
Social Engineering - do they ever use QA?