如何将 Button 视为 WatiN 中的容器?
<button>
is a very well valid container in HTML standard yet WatiN DOM implementation does not support that behavior. Is there way to "cast" it to a container to query child elements of that button? My attempts to do it with ElementContainer<TElement>
instances were in vain.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们通过创建
ElementContainer
We worked this around by creating a descendant of
ElementContainer<Button>
naming itContainerButton
. We used that whenever we wanted to refer to a button. It needs to have an[ElementTag("button")]
attribute at top.