Micro Focus QTP (UFT) Forums
not getting proper code - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: not getting proper code (/Thread-not-getting-proper-code)



not getting proper code - qtpguru - 11-10-2009

I am preparing a script for the below process:
1. Log in tothe application
2. click twice "add files"
3. A window pops-up to show the location of the file.
4. select the file and done.

When I do step 2, I get the below code:
Code:
Browser("Document").Page("Document_2").Frame("Frame").WinObject("Control").Click 47,235

Browser("Document").Page("Document_2").Frame("Frame").WinObject("Canvas").Click 45,233

And for the step 3:
Code:
Browser("Document").Window("Select Files").Click 153,123

I couldnt understand why I get the coordinate number though I havent changed the recording mode?

In step 4, I have selected a file from desktop named "Sample". but I couldnt see a code that shows the file "Sample". I just got the above code
Code:
(Browser("Document").Window("Select Files").Click 153,123))
Can any body explain?

Thanks.


RE: not getting proper code - Saket - 11-10-2009

can you check if you have all the basic addins properly added?
can you attach a spyshot of the control?