SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    TO record the Right click event by QTP 9.2


    Hello every one ,

    Currently I am facing a problem to record the Rt. mouse click event through the QTP 9.2 on the application developed on the C# .net Platform . I have also installed the Test advantage from the infagestics to resolve the problem , but still the problem is persistant. can some one suggest me the solution for the same.


    Thank You ,
    VGJ

  2. #2
    Senior Member
    Join Date
    Feb 2007
    Location
    Pittsburgh, USA
    Posts
    429
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TO record the Right click event by QTP 9.2

    You can genratre mouse right click during replay.

    Here is the sample code and you need to modify for your needs.

    Set obj = CreateObject ("Mercury.DeviceReplay")
    absx = Browser("Google").Page("Google").WebEdit("q").GetR OProperty("abs_x")
    absy = Browser("Google").Page("Google").WebEdit("q").GetR OProperty("abs_y")
    obj.MouseMove absx, absy
    wait(3)
    obj.MouseDown absx, absy, 2 '2 is for the Right Click and 0 for the Left click
    wait(3)
    obj.MouseUp absx, absy, 2
    Set obj = Nothing

    -Reddy
    -Reddy

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:12 PM.

Copyright BetaSoft Inc.