browser: Add an absurl method to Page

This commit is contained in:
Laurent Bachelier 2015-02-11 16:53:41 +01:00
commit 677cc18524

View file

@ -203,6 +203,12 @@ class Page(object):
"""
return None
def absurl(self, url):
"""
Get an absolute URL from an a partial URL, relative to the Page URL
"""
return urlparse.urljoin(self.url, url)
class FormNotFound(Exception):
"""