Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 硒-如何等待元素';s文本是否不再为空?_C#_String_Selenium Webdriver_Webdriverwait_Is Empty - Fatal编程技术网

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=“”调用它