如何找到在华廷的元素通过其标记的名字吗? [英] How to find an Element in Watin by its tag name?
本文介绍了如何找到在华廷的元素通过其标记的名字吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何找到一个特定的元素,或元素的使用使用华廷自己的标记名列表?
How to find a specific element, or a list of elements by using their TagName using Watin?
推荐答案
由于华廷2.0 Beta 1的这种情况已经改变为:
As of WatiN 2.0 beta 1 this has changed to:
ie.ElementWithTag("h1", constraint);
使用Find.XXX方法时,创建
约束。
Constraints are created when using the Find.XXX methods.
下面是一个例子:
ie.ElementWithTag("h1", Find.ByClass("blue");
这篇关于如何找到在华廷的元素通过其标记的名字吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文