C# 硒-如何等待元素';s文本是否不再为空?
在有条件的等待中挣扎。开箱即用有一种等待文本出现的方法。 唉,没有这样的事情,文本不再存在C# 硒-如何等待元素';s文本是否不再为空?,c#,string,selenium-webdriver,webdriverwait,is-empty,C#,String,Selenium Webdriver,Webdriverwait,Is Empty,在有条件的等待中挣扎。开箱即用有一种等待文本出现的方法。 唉,没有这样的事情,文本不再存在 new WebDriverWait(Driver.Browser, Timeouts.Process(timeout)).Until(SeleniumExtras.WaitHelpers.ExpectedConditions.TextToBePresentInElementLocated(this.Selector.Locator, text)); 我想出了 new WebDriverWait(Driv
new WebDriverWait(Driver.Browser, Timeouts.Process(timeout)).Until(SeleniumExtras.WaitHelpers.ExpectedConditions.TextToBePresentInElementLocated(this.Selector.Locator, text));
我想出了
new WebDriverWait(Driver.Browser, Timeouts.Process(timeout)).Until(d => d.FindElement(this.Selector.Locator).Text != text);
然后我用text=“”调用它