• Watin Html标记与Class映射表


    Html element WatiN Class WatiN Collection Example Version

     

     

     

     

     

    <a />

    Link

    LinkCollection

    Ie.Link(linkId)

    0.7

    <area />

    Area

    AreaCollection

    ie.Area(Find.ByAlt(alttext))

    1.2

    <button />

    Button

    ButtonCollection

    Ie.Button(buttonId)

    0.9

    <div />

    Div

    DivCollection

    Ie.Div(divId)

    0.7

    <form />

    Form

    FormCollection

    Ie.Form(formId)

    0.7

    <frame />

    Frame

    FrameCollection

    Ie.Frame(frameId)

    0.7

    <frameset />

    -

    FrameCollection

    Ie.Frames

    0.7

    <iframe />

    Frame

    FrameCollection

    Ie.Frame(iframeId)

    0.9

    <img />

    Image

    ImageCollection

    Ie.Image(imageId)

    0.7

    <input type=button/>

    Button

    ButtonCollection

    Ie.Button(buttonId)

    0.7

    <input type=checkbox/>

    CheckBox

    CheckBoxCollection

    Ie.CheckBox(checkboxId)

    0.7

    <input type=file/>

    FileUpload

    FileUploadCollection

    Ie.FileUpload(fileuploadId)

    0.9

    <input type=hidden/>

    TextField

    TextFieldCollection

    Ie.TextField(hiddenId)

    0.7

    <input type=image/>

    Button

    ButtonCollection

    Ie.Button(imageId)

    no longer supported as of 2.0 beta 1

    <input type=image/>

    Image

    ImageCollection

    Ie.Image(imageId)

    0.9.5

    <input type=password/>

    TextField

    TextFieldCollection

    Ie.TextField(passwordId)

    0.7

    <input type=radio/>

    RadioButton

    RadioButtonCollection

    Ie.RadioButton(radioId)

    0.7

    <input type=reset/>

    Button

    ButtonCollection

    Ie.Button(resetId)

    0.7

    <input type=submit/>

    Button

    ButtonCollection

    Ie.Button(submitId)

    0.7

    <input type=text/>

    TextField

    TextFieldCollection

    Ie.TextField(textId)

    0.7

    <label />

    Label

    LabelCollection

    Ie.Label(elementId)

    0.7

    <option />

    Option

    OptionCollection

    Ie.Select(selectId).Options

    1.0

    <p />

    Para

    ParaCollection

    Ie.Para(pId)

    0.7

    <select />

    Select

    SelectCollection

    Ie.Select(selectId)

    0.7

    <span />

    Span

    SpanCollection

    Ie.Span(spanId)

    0.7

    <table />

    Table

    TableCollection

    Ie.Table(tableId)

    0.7

    <tbody />

    TableBody

    TableBodyCollection

    Ie.TableBody(tablebodyId)

    Ie.Table(tableid).TableBodies

    1.0

    <td />

    TableCell

    TableCellCollection

    Ie.TableCell(tablecellId) or

    Ie.Table(TableId).TableRows[0].TableCells[0]

    0.7

    <textarea />

    TextField

    TextFieldCollection

    Ie.TextField(textareaId)

    0.7

    <tr />

    TableRow

    TableRows

    Ie.TableRow(tablerowId) or

    Ie.Table(TableId).TableRows[0]

    0.7

    All elements, also the ones not mentioned in this list

    Element and

    ElementsContainer

    ElementCollection

    Ie.Element(elementId)

    Ie.Element(tagname, elementId)

    0.9


    1.2


  • 相关阅读:
    iOS开发-UIScrollView原理
    关于tableView点击状态栏列表回到顶部的说明
    实用技术之bugly
    KVO你所不知道的"坑"
    iOS iPhone SDK 包含哪些东西?
    NSTime的全面认识
    四 数据结构与算法总结(一)
    三 数据结构 --数和二叉树
    二 线性表
    一 数据结构的概念,时间复杂度和空间复杂度
  • 原文地址:https://www.cnblogs.com/zqonline/p/1932760.html
Copyright © 2020-2023  润新知