I am using Selenium and Java to write a test.
What is the difference between
List<WebElement> wes = wait.until(ExpectedConditions.
visibilityOfAllElementsLocatedBy(By.xpath("//span[not(text()='a')]")));
and
List<WebElement> wes = wait.until(ExpectedConditions.
visibilityOfAllElementsLocatedBy(By.xpath("//span[text()!='a']")));
The first one throws error saying that it found nothing while the bottom one brings me all spans whose text is not 'a'.