Skip to content

测试input组件的时候怎么获得input的值? #69

@chenzhutian

Description

@chenzhutian

input在渲染的时候事先传了value进去, 但是不知道怎么取得这个值来做assertion
我试了以下几种都不行
input.dom.innerHTML
input.dom.innerText
input.dom.getAttribute('value')
input.data

谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions