12-18-2009, 06:40 AM
Here I am making my issue more simpler
I have a main browser window which has a webfile control as shown in attached screen short named browse.jpg. Initially i was trying to automate this way as mentioned below
1-click borse button ( QTP recording it fine)
2- Open file diaplog displayed ( QTP unable to record file slection operation on this window
So descided to skip browse button on the main window and open and set path is associated edit box in webfile control. But webfile.set method didn't worked for me .It is neither getting failed nor setting path strange it is ((((((((
After failing in above I thought to write file name in file name box of file open dialog highlighted in blue which worked fine with code statement
'''Browser("ProjectCentre QTP: DropBox").Dialog("Choose file").WinEdit("").Set Your File
''
But when I click open button to select file it gives me error 'object not visible' as shown in man screenshort of my post.
I have tried it to get object at run time and using child object method on this file open dialog but nothing working for me right now
stuck in both places 1- setting path in webfile and 2- sing opne file dialog
I hope I have lited all required details
I have a main browser window which has a webfile control as shown in attached screen short named browse.jpg. Initially i was trying to automate this way as mentioned below
1-click borse button ( QTP recording it fine)
2- Open file diaplog displayed ( QTP unable to record file slection operation on this window
So descided to skip browse button on the main window and open and set path is associated edit box in webfile control. But webfile.set method didn't worked for me .It is neither getting failed nor setting path strange it is ((((((((
After failing in above I thought to write file name in file name box of file open dialog highlighted in blue which worked fine with code statement
'''Browser("ProjectCentre QTP: DropBox").Dialog("Choose file").WinEdit("").Set Your File
''
But when I click open button to select file it gives me error 'object not visible' as shown in man screenshort of my post.
I have tried it to get object at run time and using child object method on this file open dialog but nothing working for me right now
stuck in both places 1- setting path in webfile and 2- sing opne file dialog
I hope I have lited all required details