Results 1 to 10 of 10
  1. #1

    Recording enter key press

    Hi All

    This problem is regarding recording enter key press for a WebEdit.I tried low levl recording but it is not working.

    Browser("OCS").Page("OCS").WebEdit("WebEdit").Type micReturn

    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 ?

  2. #2

    Re: Recording enter key press

    Try using
    Browser("OCS").Page("OCS").WebEdit("WebEdit").subm it

    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)

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Twin Cities, MN, USA

    Re: Recording enter key press

    You could also do a click followed by a SendKeys from the Windows Script Host. I like submit better, just giving you more options.

  4. #4

    Re: Recording enter key press

    Using submit is not working.Can anyone give some other pointers regarding this.

  5. #5
    Senior Member
    Join Date
    Jul 2001
    Boston, MA

    Re: Recording enter key press

    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(&quot;OCS&quot.Page(&quot;OCS&quot.WebEdit(&quot;WebEdit&quot.Set &quot;testline1&quot; + vbCr + &quot;testline2&quot;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">

  6. #6

    Re: Recording enter key press

    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

  7. #7

    Re: Recording enter key press

    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

  8. #8

    Re: Recording enter key press

    Try this function

    Public Sub EnterVal (Value)

    Dim WshShell

    Set WshShell = CreateObject("WScript.Shell")

    Wait 2

    WshShell.Sendkeys "^(a)"

    'Wait 1

    WshShell.Sendkeys Value

    'Wait 1

    WshShell.Sendkeys "{TAB}"

    Wait 2

    End Sub

  9. #9

    Re: Recording enter key press

    Use Browser(..).Page(..).WebEdit(..).Click before using this function

  10. #10
    Senior Member
    Join Date
    Jun 2001
    Bend, Oregon

    Re: Recording enter key press

    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.

    Good luck.
    Social Engineering - do they ever use QA?



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:52 PM.

Copyright BetaSoft Inc.