from pages.base_page import BasePage
import time
from behave import *
from selenium.webdriver.common.by import By


@step('I navigate to the Bank Homepage')
def step_impl(context):
    page = BasePage(context)
    page.navigate("https://www.bankofireland.com/")
    #assert_equal(context.home_page.get_page_title(), "PyPI - the Python Package Index : Python Package Index")


@step('I refresh the page')
def step_impl(context):
    page = BasePage(context)
    page.refresh()
    time.sleep(5)
