Tuesday, January 29, 2008

Two kind of spaces

Damn, I spent two hours discovering the reason of my Selenium test failing.
It turned out that the title of the web page contains non-breaking spaces instead of common ones. I wondered why "s.indexOf(s1)" returns -1, where:
s = "blablablb :: Directions";
s1 = ":: Directions";

0 comments: