WatiN support for HTML5 tags

前端 未结 1 1273
日久生厌
日久生厌 2020-12-16 17:36

I have the following HTML:


I want to type text into it from WatiN :

var field = B         


        
相关标签:
1条回答
  • 2020-12-16 18:00
    var field = Browser.TextField("email");
    

    Tries to get the TextField with id email and thus fails for the TextFieldExtended type.

    var field = Browser.ElementOfType<TextFieldExtended>("email");
    

    Gets the TextFieldExtended with id email.

    0 讨论(0)
提交回复
热议问题