Hi I need to click hover element in Selenium Python.
I tried to use action
chains and then move to element but it didn't work for me.
My Selenium code Snippet:
element1= self.driver.find_element_by_css_selector("#layout-center .ui-tabs-nav.ui-helper-reset.ui-helper-clearfix.ui-widget-header.ui-corner-all.ui-sortable")
element2=self.driver.find_element_by_css_selector("#layout-center button.add-widget")
ac(driver).move_to_element(element1).click(element2).perform()