简体   繁体   中英

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.

尝试t.GetAttributeValue("type")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM