Right click simulation in DP

Simulating a right click to open a link in a new window does not require descriptive programming.

Here is the code:
url = Browser("IT Resource Center forums_2").Page("IT Resource Center forums").Link("Henry Floyd").GetROProperty("url")

SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE",url,"","open"


Method :2 

    object.FireEvent "oncontextmenu"

comment 0 comments:

  • Recent Posts

     
    © QTPCode | Design by Blog template in collaboration with Concert Tickets, and Menopause symptoms
    Powered by Blogger