I have a 0.
0
I try to write a test that myDiv has 0 text in it. With WebDriver it is:
I just need use a real browser for my webDriver:
webDriver = new FirefoxDriver();
Then it works.
Maybe it is a JavaScript issue.
In Selenium 2, I used this, and it works for me fine.
driver.getPageSource().contains(text);