googleid_105206
14 years agoContributor
which is better way to handle File open and save file windows in IE &FF browser?
Hi
I am Working on Flex4.5 based application using testcomplete 8.6.
How handle File open and File Save windows
and pop up windows. below example code is working correctly ,please correct
me.which method do u suggest to handle this type objects.
file ="Path of the file"
Fire Fox :
set enterFileName=Sys.Process("firefox").Window("#32770", "Select file to upload by 172.16.6.165", 1).Window("ComboBoxEx32", "", 1).Window("ComboBox", "", 1)
enterFileName.SetText file // using this way it's working fine
or
set enterFileName=Sys.Process("firefox").FindChild("WndClass","Edit",6)
enterFileName.SetText file // using this way it's working fine
IE:
'set enterFileName=Sys.Process("IEXthePLORE", 4).Window("#32770", "Select file to upload by 172.16.6.165", 1).Window("ComboBoxEx32", "", 1).Window("ComboBox", "", 1).Window("Edit", "", 1)
enterFileName.SetText file // using this way it's working fine
or
set enterFileName=Sys.Process("IEXPLORE", 4).FindChild("WndClass","Edit",4)
enterFileName.SetText file // using this way it's working fine
Please suggest me which is better approach to handle above
objects in IE &FF browser.
Regards,
Vijay