Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to paste file location in QTP
#1
Not Solved
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 
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Selecting file saved in a location excellentpawan 1 4,062 02-25-2014, 02:05 PM
Last Post: guin.anirban
  Copy file to network shared location sams001 0 3,161 04-03-2013, 02:10 AM
Last Post: sams001
MyBB Saving an excel file with the same name and same location after updating few columns pKrishna 1 4,945 01-04-2013, 04:40 PM
Last Post: Ankesh
  QTP 11 Evaluation installation file not having executable file Akhila 2 4,272 10-19-2012, 12:04 AM
Last Post: gdp9600
  location function Anamika sinha 3 2,823 05-10-2011, 10:04 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)