# Copyright 2018 The Wazo Authors  (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from selenium.webdriver.common.by import By

from .page import Page


class IndexPage(Page):

    PATH = "/"

    def go(self):
        url = self.build_url(self.PATH)
        self.driver.get(url)
        self.wait_for(By.CLASS_NAME, 'user-header')
        return self
