0
您能解释一下By
元素和IWebElement
之间的区别吗?按元素和IWebElement
另外,为什么硒不使用其中一种?
[FindsBy(How = How.XPath, Using = "//div[@class='example']/h3")]
private IWebElement _heading;
和
var byElement = By.XPath("//div[@class='example']/h3")