2013-02-07 5 views
0

Est-il possible d'identifier les objets par index dans Watin (comme le sélénium // entrée [2])Identifier des objets par index

par exemple si nous avons des champs d'entrée

inputfield: < id entrée < = "UserID" type = "text" >>

inputfield: < < input id = type de "userid" = "text" >>

inputfield: < id = entrée < type "userid" = "text" >>

inputfield: < id = entrée < de type "userid" = "text" >>

Comment identifier chacun par index?

Répondre

1

Oui, il y a:

browser.TextFields.Filter(Find.ById("id_name"))[0]; 
Questions connexes