number of elements in a list

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
eternos
Posts: 16
Joined: Mon Jan 22, 2007 11:36 am

number of elements in a list

Post by eternos » Tue Sep 18, 2007 11:33 am

hello,
i'm trying to identify how many elements are in a list

this is what i got recording a click on the button "edit" belonging to the first list / first element:

TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:viewSubject.do ATTR=ID:edit&&VALUE:Editar

the number of the elements changes from a list to the next (i got several lists to edit) and would like to read this number before automatizing the procedure of editing one list after the other, so...

how can i extract this data (number of elements) from the list?
how can i repeat the clicking for "n" times, where "n" is not a fix number?

thank you again
ernesto[/img]
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Tue Sep 18, 2007 12:19 pm

Can you please post the URL of the web page that contains this element?
eternos
Posts: 16
Joined: Mon Jan 22, 2007 11:36 am

...

Post by eternos » Tue Sep 18, 2007 2:50 pm

this is the URL but i'm afraid you will be asked a login; just in case the URL name can be useful (or the login page), here it is:

http://plataforma.formacion2020.es/eleE ... ?areaId=58

and this is the code so that you can find out further information

the list is called "Asignaturas" and the elements are:
"De la formación presencial a la Formación On-Line..."
"Diseño Programación Elaboración y Evaluación..."


<div id="subjects">

<a name="asignaturas"></a>
<h1>Lista de Asignaturas</h1>
<table class="twoColors">
<tr>
<th width="40%">Asignatura</th>
<th width="40%">Descripción</th>
<th width="10%">Duración</th>

<th width="10%">Acciones permitidas</th>
</tr>

<form action="viewSubject.do" method="get">
<input type="hidden" name="subjectId" value="271"/>
<tr>
<td><b>De la formación presencial a la Formación On-Line: Características de las distintas modalidades de formación</b></td>
<td>La formación en distintos contextos formativos.</td>
<td>50 hrs</td>

<td nowrap="nowrap">


<input type="submit" value="Editar" id="edit"
title="ir a la zona de edición de la asignatura" />



</td>
</tr>
</form>

<form action="viewSubject.do" method="get">
<input type="hidden" name="subjectId" value="263"/>
<tr>
<td><b>Diseño Programación Elaboración y Evaluación de Cursos</b></td>

<td>Diseño Programación Elaboración y Evaluación de Cursos Acción 85</td>
<td>35 hrs</td>
<td nowrap="nowrap">


<input type="submit" value="Editar" id="edit"
title="ir a la zona de edición de la asignatura" />



</td>
</tr>
</form>

</table>

</div>

[/img]
eternos
Posts: 16
Joined: Mon Jan 22, 2007 11:36 am

...

Post by eternos » Tue Sep 18, 2007 3:04 pm

if it can help you...

i recorded clicking the positions of list "Asignatura" and then 1st and 2nd elements, i just need knowing how many elements TYPE=B exists into the list "Asignatura" which is TYPE=TH

VERSION BUILD=6000818 RECORDER=FX
TAB T=1
URL GOTO=http://plataforma.formacion2020.es/eleE ... ?areaId=58
TAG POS=1 TYPE=TH ATTR=TXT:Asignatura
TAG POS=1 TYPE=B ATTR=TXT:De<SP>la<SP>formación<SP>presencial<SP>a<SP>la<SP>Formación<SP>On-Line:<SP>Características<SP>de<SP>las<SP>distintas<SP>modalidades<SP>de<SP>formación
TAG POS=1 TYPE=B ATTR=TXT:Diseño<SP>Programación<SP>Elaboración<SP>y<SP>Evaluación<SP>de<SP>Cursos
TAG POS=1 TYPE=H1 ATTR=TXT:Lista<SP>de<SP>Modulos

(sorry if i'm too confusing or reiterative)
Post Reply