def hover_over_element(selenium_generics: SeleniumGenerics, locators: Locators, locator_path): xpath = locators.parse_and_get(locator_path) selenium_generics.scroll_into_view(selector=xpath) selenium_generics.hover(selector=xpath)
def click_on_element(selenium_generics: SeleniumGenerics, locators: Locators, locator_path): xpath = locators.parse_and_get(locator_path) selenium_generics.scroll_into_view(selector=xpath) selenium_generics.click(selector=xpath)