title: PHP WebDriver assert a condition?
body: <p>I created a test using PHP WebDriver and Selenium. Now I want to make sure that a certain text is contained in an element. How do I do that? I tried:</p>
  
  <pre><code>$web_driver-&gt;wait(3)-&gt;until(
    WebDriverExpectedCondition::textToBePresentInElement(WebDriverBy::cssSelector('.cart-price span.price'), '55,00 €')
    );
  </code></pre>
  
  <p>But this always ends in a TimeoutException. Isnt there a way to really use something like this:</p>
  
  <pre><code>assertTrue(WebDriverExpectedCondition::textToBePresentInElement(WebDriverBy::cssSelector('.cart-price span.price'), '55,00 €'))
  </code></pre>
  
  <p>Thanks for your help!</p>