<reponame>AnnaKarelina1/gettop_internship
from selenium.webdriver.common.by import By
from behave import given, when,then
from time import sleep

IPHONE_TAB=(By.XPATH, "(//a[@href='https://gettop.us/product-category/iphone/'])[1]")

@when('Hover over Tab iPhone')
def hover_over_tab_item(context,*locator):

    context.app.product_page.hover_over_item(*IPHONE_TAB)

@then ('Verify correct selection options for iPhone are shown')
def verify_option_iphone(context):

    context.app.result_page.verify_dropdown_iphone()
from selenium.webdriver.common.by import By
from behave import given, when,then
from time import sleep

IPHONE_TAB=(By.XPATH, "(//a[@href='https://gettop.us/product-category/iphone/'])[1]")

@when('Hover over Tab iPhone')
def hover_over_tab_item(context,*locator):

    context.app.product_page.hover_over_item(*IPHONE_TAB)

@then ('Verify correct selection options for iPhone are shown')
def verify_option_iphone(context):

    context.app.result_page.verify_dropdown_iphone()