At first, I tried the Find method instead of FindAll, which returned me the last object of the group. But I want the first object, so I used the FindAll method. The problem is when I run the FindAll method, I get the following error message:
Object required: 'NameMapping.FindAll(...)'
Unit: "Unit1" Line: 71 Column: 3.
I have read the documentation, but it seems I should be able to use the FindAll method the same way than the Find method.
The difference between the FindAll and Find methods is that the FindAll method returns an array of objects and the Find method returns the first found object in the object tree. You get the error message because you are trying to get the value of the href property of the resulting array. You cannot use the href property in such a way. Here's the corrected script:
To know the object name for sure, open the Name Mapping editor (see the "Name Mapping Editor" article for more information), find the 'iexplore' object in the Name Mapping scheme, copy its full name and paste it to the script.
-- Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️