"""
Django-specific extensions
"""

try:
    from urllib.parse import urljoin
except ImportError:
    from urlparse import urljoin

from lettuce import step

# make sure the steps are loaded
import lettuce_webdriver.webdriver  # pylint:disable=unused-import


@step(r'I visit site page "([^"]*)"')
def visit_page(self, page):
    """
    Visit the specific page of the site.
    """

    testclass = self.testclass
    base_url = testclass.live_server_url.__get__(testclass)
    url = urljoin(base_url, url)
    self.given('I visit "%s"' % url)

@@ -496,19 +496,20 @@
 se_url, 
-url
+page
 )%0A    se

Fix visit page step