Adding profile walker to okc

This commit is contained in:
Ahmed Boussadia 2014-05-07 15:52:00 +02:00 committed by Romain Bignon
commit bf4300e9be
3 changed files with 18 additions and 18 deletions

View file

@ -204,4 +204,10 @@ class VisitsPage(BasePage):
'date': visitor_timestamp
})
return visitors
class QuickMatchPage(BasePage):
def get_id(self):
element = self.parser.select(self.document.getroot(), '//*[@id="sn"]', method='xpath')[0]
visitor_id = unicode(element.get('value'))
return visitor_id