【发布时间】:2019-12-19 13:41:52
【问题描述】:
当我点击 button 1 时使用 Selenium C# 会抛出 NoSuchElementException
我试过了:
driver.FindElement(By.XPath("/html/body/div[2]/div[2]"));
driver.SwitchTo().Frame(0);
new WebDriverWait(driver, TimeSpan.FromSeconds(10))
.Until(SeleniumExtras.WaitHelpers.ExpectedConditions
.ElementExists((By.Id("hello-button"))));
[![HTML 已附加][1]][1]
[1]:
【问题讨论】:
标签: c# google-chrome selenium-webdriver