forum.test17
forum.test17

Reputation: 2219

How can I get the type of a textbox in watin?

I would like to get the type of the textbox using watin. Do we have any methods which can do this?

Suppose if we had two text boxes with name and phone number, we can get the value of the text box by using t.getValue();. There is no way to get what type of data it should contain as far as I know. t.getType() returns the IE instance.

Upvotes: 0

Views: 374

Answers (1)

Aasmund Eldhuset
Aasmund Eldhuset

Reputation: 37980

Try t.GetAttributeValue("type").

Upvotes: 1

Related Questions