Altered parse_locator to play nicely with css selectors with '=' inside.