Hi there!
I’m trying to loop and click through a series of items on a website which are inside a UL
element.
The HTML is as follows:
<ul id="network-list" class="network-list network-list-icons navigation clearfix">
<li id="network-1" class="network network-item navigation-item cursorPointer ajaxNetwork first">
<input type="hidden" value="1"/>
</li>
<li id="network-2" class="network network-item navigation-item cursorPointer ajaxNetwork ">
<input type="hidden" value="2"/>
</li>
<li id="network-3" class="network network-item navigation-item cursorPointer ajaxNetwork ">
<input type="hidden" value="3"/>
</li>
<!-- and so forth, there are 17 more of these -->
</ul>
So, basically, clicking each one of these would lead to additional actions, namely downloading files. I’ve put these inside a For Each activity, looping as “For each network
in networkList
”, with networkList as an IEnumerable variable.
However, all I get is the loop constantly clicking the very first item. On my Selector I have this:
<webctrl css-selector='body>div>ul' id='network-list' parentid='main' tag='UL' />
<webctrl id='network-*' tag='LI' />
But I’m not sure if the id='network-*'
bit is correct.
Any inputs, hints or general advice on where to find more info on this will be appreciated.
Thanks in advance!
David.