Hello,
Question about dynamic HTML paths.
I have this Internet Explorer page with various folders, and inside these folders, there are some other icons you can click at. I need to navigate between these folders. The problem is that sometimes, there can be many folders, sorted in different ways. For example, I have these folders:
Folder A
Folder C
I need to navigate from inside Folder A to Folder C. However, sometimes, a Folder B can be added.
Folder A
Folder B
Folder C
Folder B will then have the previous path of Folder C, so whenever inspecting, Folder B will be chosen.
That's why I've tried using dynamic paths. The way I use dynamic paths:
I have copied the HTML path from a folder. It can look like this:
"/HTML/BODY(1)/DIV(1)/DIV(1)/DIV(4)/DIV(2)/DIV(1)/DIV(2)/DIV(" & [Counter] &")/A(1)/SPAN(1)"
1. I use a calculation stage to set the path to a Data Item called Path.
2. I read the Value (identify the folders using their name) using Path as dynamic attribute. Read stage is used.
3. Around the Read stage, I hafve a block in which throws an Exception if I don't get any values. If exception is thrown, increase the counter.
4. If a value is returned, and it's the target value, then we click on it.
The problem: Step 3, throwing Exceptions takes too long. I tried to navigate between two folders, this took me around 1 minute. Even surface automation could do it faster.
Is there any ways I could improve the navigation between folders using dynamic paths?