Using C # WATIN, how do I get the value of the second occurrence of the html element of the INPUT tag on the page?
I tried a bunch of things and did not succeed. The debugger does not give me an obvious way to get the item [1] among the returned 4.
Console.WriteLine(ie.Element(Find.ByClass("myclass")).GetAttributeValue("value") ) ;
Console.WriteLine(ie.ElementsWithTag("input", "text").Length.ToString() );
Console.WriteLine( ie.Element(Find.ByName("login")).GetAttributeValue("value") );
Basically, I want to be able to select an input element by array index .
source
share