Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - During test run, How will you copy/paste from/to clipboard?




435
views
asked marvit August 20, 2014 10:13 AM  

During test run, How will you copy/paste from/to clipboard?


           

1 Answers



 
answered By Dharma   0  
This function will useful
Function f_CopyAllToClipBoard ()
Dim vText, vWindow_PuTTY_WMenu_CopyAllToClipboard
Set vWindow_PuTTY_WMenu_CopyAllToClipboard = Window
("nativeclass:=PuTTY").WinMenu("menuobjtype:=4")
vWindow_PuTTY_WMenu_CopyAllToClipboard.Select "Copy All
to Clipboard"
'Clipboard object
Set cb=CreateObject("Mercury.Clipboard")
' Get the text on the system clipboard.
vText=cb.GetText
' Release the Clipboard object.
Set cb=nothing

f_CopyAllToClipBoard = vText
End Function 

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert