我使用WebElement.findElement(By.cssSelector('')).click();在页面上查找元素,但它返回"Unable to locate element",但当我使用WebDriver.findElement我无法理解这两个接口的findElement()之间的区别。请帮帮忙。
如何在1 FindElement中同时搜索2个类。我不知道它应该是什么样子,但就像这样(示意性地)或者更容易使用如果其他IWebElement element18 = driver.FindElement(By.XPath("//div[contains(@class, 'button') or con