Using selenium 0.3
I got the following element
..............
<table cellspacing="0" cellpadding="0" border="0" align="CENTER" width="100%" class="ARRAY1">
.............
if I use the expression
//[EMAIL PROTECTED]'ARRAY1']//a[text() ='Nom'] selenium find the element
but if I use the expression
(//[EMAIL PROTECTED]'ARRAY1'])[1]//a[text() ='Nom'] selenium does not find the element
So it seems to me selenium Xpath lib does not handle parenthesis
I test both expressions with lantern which use xerces + xalan and it works well.

Of course my use case for parenthesis was not this one, but it was easier to explain so. my use case is an expression like (//td[contains(@class,'ARRAY')]/parent::tr)[3]/td[2] to test the value of a cell in a table structured like
<table>
<tr>
<td class='ARRAY2'>
</td>
<td class='ARRAY2'>
</td>
</tr>
<tr>
<td class='ARRAY1'>
</td>
<td class='ARRAY1'>
</td>
</tr>
<tr>
<td class='ARRAY2'>
</td>
<td class='ARRAY2'>
*Value to test*
</td>
</tr>
.........(other rows)..........
</table>
(this table is lost in middle of a big number of others table for layout)


Ce message est protégé par les règles relatives au secret des correspondances. 
Il est donc établi à destination exclusive de son destinataire. Celui-ci peut 
donc contenir des informations confidentielles. La divulgation de ces 
informations est à ce titre rigoureusement interdite. Si vous avez reçu ce 
message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail 
figure ci-dessus et de détruire le message ainsi que toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore, 
this message is intended solely for the attention of the addressee. This 
message may contain privileged or confidential information, as such the 
disclosure of these informations is strictly forbidden. If, by mistake, you 
have received this message, please return this message to the addressser whose 
e-mail address is written above and destroy this message and all files attached.
_______________________________________________
Selenium-users mailing list
[email protected]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to