assertXpathCount() expects a string
Currently, you have to
s.assertXpathCount('//td', '3') which is rather clumsy.
The underlying reason is that the selenium python client does not convert numbers into int:
def get_number(self, verb, args): # Is there something I need to do here? return self.get_string(verb, args)
I've asked upstream how to get a fix in there. If we can't, we probably should work around this in gocept.selenium.