08-09-2018, 10:54 AM
Recently I am facing a crazy problem. There is one test case in QTP (QuickTest Professional) to copy one file path from my c drive to the application. The location of the destination area is
PHP Code:
Browser("Modify").Page("Modify").ActiveX("Java Plug-in 11.161.2").WinObject("SunAwtCanvas")
and first I need to identify the coordinate of this area. I have tried using getroproperty("X") but it can't work out.
Code to copy-paste the file
Code:
Set WshShell =CreateObject("WScript.Shell") WshShell.SendKeys "^c"
Browser("Modify").Page("Modify").ActiveX("Java Plug-in 11.161.2").WinObject("SunAwtCanvas").Click 1,1
Browser("Modify").Page("Modify").ActiveX("Java Plug-in 11.161.2").WinObject("SunAwtCanvas").highlight
Browser("Modify").Page("Modify").ActiveX("Java Plug-in 11.161.2").WinObject("SunAwtCanvas").Click WshShell.SendKeys "^v"
Can anyone tell me how to locate this destination area so that I can paste my file name and location there? Note: it's not a text-area.
Thanks & Regards
Camillelola