I'm trying to write some tests with Lettuce, started using lxml
but found kin开发者_如何转开发da complicated to integrate it with Django
in the same way that Webrat integrates with Rails.
I use beautiful soup with django and no problems.
http://www.crummy.com/software/BeautifulSoup/
Not sure what your problem with lxml being complicated is (parsing html will be complicated!) but I've always used Beautiful Soup for handling html, finding elements, constructing trees etc etc.
精彩评论