sarya
15 years agoFrequent Contributor
Expanding web folders
Hi,
I have some sub-folders under the main folder that I need to expand one by one by clicking on the box with +/- sign.
The recorded script comes like this but these IDs are subject to change at anytime. Is there a way to associate the corresponding expand folder sign with the foldername.For example - The expand folder icon corresponding to 'Accounting' folder that it recognizes the foldername and click on the icon adjacent to it.
I have some sub-folders under the main folder that I need to expand one by one by clicking on the box with +/- sign.
The recorded script comes like this but these IDs are subject to change at anytime. Is there a way to associate the corresponding expand folder sign with the foldername.For example - The expand folder icon corresponding to 'Accounting' folder that it recognizes the foldername and click on the icon adjacent to it.
var iexplore;
var all;
iexplore = Sys.Process("iexplore");
iexplore.ToURL("http://vmsa:8080/r2w/home.do");
all = iexplore.Page("http://vmsa:8080/r2w/home.do").document.frames.ifmfolder.document.all;
all.IF5848.Click(5, 10);
all.IF5849.Click(4, 9);
all.IF5850.Click(4, 7);
all.IF5851.Click(6, 8);
all.AF5852.Click();
Thanks,
Sumedha