fix finding jid on some pages

This commit is contained in:
Romain Bignon 2015-08-07 13:26:13 +02:00
commit 1959e79048

View file

@ -172,7 +172,7 @@ class AccountsList(LoggedPage, HTMLPage):
item_xpath = '//table'
def get_history_jid(self):
span = Attr('//span[starts-with(@id, "index:j_id")]', 'id')(self.doc)
span = Attr('//*[starts-with(@id, "index:j_id")]', 'id')(self.doc)
jid = span.split(':')[1]
return jid