SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4

Thread: Tabbing in QTP

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Tabbing in QTP

    How do you make your script tab to the next block of your application? My script is not recognizing the keystroke to tab or F2, how do you code a script to tab?

  2. #2
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Tabbing in QTP

    Window("zzzzz").Type micTab

    Window("zzzzz").Type micF2

    You can find complete list of QTP Type Constants in QTP Help.

    Janna

  3. #3
    Junior Member
    Join Date
    Aug 2005
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Tabbing in QTP

    'Create a WScript.shell object which will be used to press keys Set

    Set ws = CreateObject("WScript.shell")

    'Press the F2 key
    ws.Sendkeys "{F2}"

    'Small pause to allow the pop up window to appear.
    wait 2

    'Press the down arrow key to highlight the desired item.
    'Use "{UP}" if you need to press the up arrow key ws.Sendkeys "{DOWN}"

    ws.Sendkeys "{DOWN}"

    'Press enter to select the currently highlighted item.
    ws.Sendkeys "{ENTER}"

    'Clean up of the WScript.shell object
    Set ws = nothing

  4. #4
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Tabbing in QTP

    Yes, of course, WScript can be used as well.
    Only don't forget to activate AUT before send the Key into it :-}

    Janna

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:33 AM.

Copyright BetaSoft Inc.